You are here

protected function BlockPermissionsBlockLibraryControllerTest::setUp in Block permissions 8

Overrides BlockPermissionsBrowserTestBase::setUp

File

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

Class

BlockPermissionsBlockLibraryControllerTest
Tests Block permissions block library controller.

Namespace

Drupal\Tests\block_permissions\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->coreBlocksUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'administer blocks provided by core',
    "administer block settings for theme {$this->defaultTheme}",
  ]);
  $this->systemBlocksUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'administer blocks provided by system',
    "administer block settings for theme {$this->secondTheme}",
  ]);
}