You are here

protected function BlockPermissionsBlockLibraryControllerTest::assertBlockLibraryPageHasAccess in Block permissions 8

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

1 call to BlockPermissionsBlockLibraryControllerTest::assertBlockLibraryPageHasAccess()
BlockPermissionsBlockLibraryControllerTest::testListBlocks in tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php
Tests blocks visibility on the "/admin/structure/block/library/{theme}".

File

tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php, line 80

Class

BlockPermissionsBlockLibraryControllerTest
Tests Block permissions block library controller.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function assertBlockLibraryPageHasAccess() {
  $this
    ->assertSession()
    ->statusCodeEquals(200);
  $this
    ->assertSession()
    ->pageTextContains('Place block');
}