You are here

protected function BlockListsRoutesAccessTest::setUp in Block permissions 8

Overrides BlockPermissionsBrowserTestBase::setUp

File

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

Class

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

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->defaultThemeUser = $this
    ->drupalCreateUser([
    'administer blocks',
    "administer block settings for theme {$this->defaultTheme}",
  ]);
  $this->secondThemeUser = $this
    ->drupalCreateUser([
    'administer blocks',
    "administer block settings for theme {$this->secondTheme}",
  ]);
}