public function AccessBlockBrowserTest::testIfShowSeven in Theme permission 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/AccessBlockBrowserTest.php \Drupal\Tests\theme_permission\Functional\AccessBlockBrowserTest::testIfShowSeven()
Check if block list contain seven url.
File
- tests/
src/ Functional/ AccessBlockBrowserTest.php, line 35
Class
- AccessBlockBrowserTest
- Administration theme access check.
Namespace
Drupal\Tests\theme_permission\FunctionalCode
public function testIfShowSeven() {
$this
->userLogin([
'administer themes bartik',
'administer themes seven',
]);
$this
->drupalGet('/admin/structure/block');
$this
->assertNotEmpty($this
->getSession()
->getPage()
->find('xpath', '//a[contains(@href, "/admin/structure/block/list/seven")]'));
}