public function AccessBlockBrowserTest::testIfAccessDeniedThemeBartik 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::testIfAccessDeniedThemeBartik()
Check if user don't access to Bartik blocks configuration.
File
- tests/
src/ Functional/ AccessBlockBrowserTest.php, line 26
Class
- AccessBlockBrowserTest
- Administration theme access check.
Namespace
Drupal\Tests\theme_permission\FunctionalCode
public function testIfAccessDeniedThemeBartik() {
$this
->userLogin();
$this
->drupalGet("/admin/structure/block/list/bartik");
$this
->assertSession()
->statusCodeEquals(403);
}