You are here

protected function BlockListElementsTest::setUp in Block permissions 8

Overrides BlockPermissionsBrowserTestBase::setUp

File

tests/src/Functional/BlockListElementsTest.php, line 31

Class

BlockListElementsTest
Tests visibility of configuration elements on the block_admin_display_form.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // User can administer blocks from core.
  $this->coreBlocksUser = $this
    ->drupalCreateUser([
    'administer blocks',
    "administer block settings for theme {$this->defaultTheme}",
    'administer blocks provided by core',
  ]);

  // User can administer blocks from system module.
  $this->systemBlocksUser = $this
    ->drupalCreateUser([
    'administer blocks',
    "administer block settings for theme {$this->defaultTheme}",
    'administer blocks provided by system',
  ]);
}