/** * Make sure that the login block is not present on homepage or /a path. */ public function testLoginBlock() { $block = new Block('user_login'); $this->assertTrue($block->isPresent('a'), "User login block is not present on /a path."); $this->assertTrue($block->isPresent('<front>'), "User login block is not present on the homepage."); }
/** * Make sure that search form block is present on homepage and on /a path. */ public function testSearchFormBlock() { $block = new Block('search_form'); $this->assertTrue($block->isPresent('a'), 'Search form block is not present on /a path.'); $this->assertTrue($block->isPresent('<front>'), 'Search form block is not present on the homepage.'); }