You are here

public function AccessBlockBrowserTest::testIfAccessThemeBartik in Theme permission 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/AccessBlockBrowserTest.php \Drupal\Tests\theme_permission\Functional\AccessBlockBrowserTest::testIfAccessThemeBartik()

Check if user access to Bartik blocks configuration.

File

tests/src/Functional/AccessBlockBrowserTest.php, line 17

Class

AccessBlockBrowserTest
Administration theme access check.

Namespace

Drupal\Tests\theme_permission\Functional

Code

public function testIfAccessThemeBartik() {
  $this
    ->userLogin([
    'administer themes bartik',
  ]);
  $this
    ->drupalGet('/admin/structure/block/list/bartik');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}