示例#1
0
 /**
  * Make sure that search form block is not present on homepage or on /a path.
  */
 public function testSearchFormBlock()
 {
     $block = new Block('search_form');
     $this->assertTrue($block->isNotPresent('a'), 'Search form block is present on /a path.');
     $this->assertTrue($block->isNotPresent('<front>'), 'Search form block is present on the homepage.');
 }
示例#2
0
 /**
  * Make sure that navigation menu is not present on either homepage or /a
  * path.
  */
 public function testNavigationBlock()
 {
     $block = new Block('system_navigation');
     $this->assertTrue($block->isNotPresent('a'), "Navigation block is present on /a path.");
     $this->assertTrue($block->isNotPresent('<front>'), "Navigation block is present on the homepage.");
 }