You are here

protected function ThemePermissionTestBase::setUp in Theme permission 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/ThemePermissionTestBase.php \Drupal\Tests\theme_permission\Functional\ThemePermissionTestBase::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ThemePermissionTestBase.php, line 39

Class

ThemePermissionTestBase
Administration theme access check.

Namespace

Drupal\Tests\theme_permission\Functional

Code

protected function setUp() {
  parent::setUp();
  \Drupal::service('theme_installer')
    ->install([
    'bartik',
    'seven',
  ]);
  $settings = [
    'theme' => 'bartik',
    'region' => 'header',
  ];

  // Place a block.
  $this
    ->drupalPlaceBlock('local_tasks_block', $settings);
}