Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PageObjectTest.php
Go to the documentation of this file.
1 <?php
8 
11 
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 }
$page
Definition: pages.php:8