You are here

protected function BlockFormRoutesAccessTest::assertBlockFormPageHasAccess in Block permissions 8

Asserts that user has the access to the page.

2 calls to BlockFormRoutesAccessTest::assertBlockFormPageHasAccess()
BlockFormRoutesAccessTest::testBlockAddFormAccess in tests/src/Functional/BlockFormRoutesAccessTest.php
Tests access to "/admin/structure/block/add/{plugin_id}/{theme}" page.
BlockFormRoutesAccessTest::testBlockEditFormAccess in tests/src/Functional/BlockFormRoutesAccessTest.php
Tests the access to the block edit page.

File

tests/src/Functional/BlockFormRoutesAccessTest.php, line 161

Class

BlockFormRoutesAccessTest
Tests Block permissions access control handler for block configuration pages.

Namespace

Drupal\Tests\block_permissions\Functional

Code

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