Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-functional-testing-framework
dev
tests
unit
Magento
FunctionalTestFramework
Page
Objects
PageObjectTest.php
Go to the documentation of this file.
1
<?php
7
namespace
tests\unit\Magento\FunctionalTestFramework\Page\Objects
;
8
9
use
Magento\FunctionalTestingFramework\Page\Objects\PageObject
;
10
use
Magento\FunctionalTestingFramework\Util\MagentoTestCase
;
11
15
class
PageObjectTest
extends
MagentoTestCase
16
{
20
public
function
testHasSection
()
21
{
22
$page
=
new
PageObject
(
'name'
,
'urlPath'
,
'module'
, [
'section1'
,
'section2'
],
false
,
'area'
);
23
$this->assertTrue(
$page
->hasSection(
'section1'
));
24
}
25
29
public
function
testDoesntHaveSection
()
30
{
31
$page
=
new
PageObject
(
'name'
,
'urlPath'
,
'module'
, [
'section1'
,
'section2'
],
false
,
'area'
);
32
$this->assertFalse(
$page
->hasSection(
'section3'
));
33
}
34
}
Magento\FunctionalTestingFramework\Page\Objects\PageObject
Definition:
PageObject.php:15
tests\unit\Magento\FunctionalTestFramework\Page\Objects
Definition:
ElementObjectTest.php:7
tests\unit\Magento\FunctionalTestFramework\Page\Objects\PageObjectTest
Definition:
PageObjectTest.php:15
$page
$page
Definition:
pages.php:8
tests\unit\Magento\FunctionalTestFramework\Page\Objects\PageObjectTest\testDoesntHaveSection
testDoesntHaveSection()
Definition:
PageObjectTest.php:29
tests\unit\Magento\FunctionalTestFramework\Page\Objects\PageObjectTest\testHasSection
testHasSection()
Definition:
PageObjectTest.php:20
Magento\FunctionalTestingFramework\Util\MagentoTestCase
Definition:
MagentoTestCase.php:15