You are here

protected function BlockListsRoutesAccessTest::assertBlockListPageHasAccess in Block permissions 8

Asserts that the user has the access to the block list page.

2 calls to BlockListsRoutesAccessTest::assertBlockListPageHasAccess()
BlockListsRoutesAccessTest::testBlockListAccess in tests/src/Functional/BlockListsRoutesAccessTest.php
Test the access to the "/admin/structure/block" page.
BlockListsRoutesAccessTest::testBlockThemeListAccess in tests/src/Functional/BlockListsRoutesAccessTest.php
Test the access to the "/admin/structure/block/list/{theme}" page.

File

tests/src/Functional/BlockListsRoutesAccessTest.php, line 108

Class

BlockListsRoutesAccessTest
Tests Block permissions access control handler for block list pages.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function assertBlockListPageHasAccess() {
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Block layout');
}