You are here

protected function BlockPermissionsBrowserTestBase::setUp in Block permissions 8

Overrides BrowserTestBase::setUp

4 calls to BlockPermissionsBrowserTestBase::setUp()
BlockFormRoutesAccessTest::setUp in tests/src/Functional/BlockFormRoutesAccessTest.php
BlockListElementsTest::setUp in tests/src/Functional/BlockListElementsTest.php
BlockListsRoutesAccessTest::setUp in tests/src/Functional/BlockListsRoutesAccessTest.php
BlockPermissionsBlockLibraryControllerTest::setUp in tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php
4 methods override BlockPermissionsBrowserTestBase::setUp()
BlockFormRoutesAccessTest::setUp in tests/src/Functional/BlockFormRoutesAccessTest.php
BlockListElementsTest::setUp in tests/src/Functional/BlockListElementsTest.php
BlockListsRoutesAccessTest::setUp in tests/src/Functional/BlockListsRoutesAccessTest.php
BlockPermissionsBlockLibraryControllerTest::setUp in tests/src/Functional/BlockPermissionsBlockLibraryControllerTest.php

File

tests/src/Functional/BlockPermissionsBrowserTestBase.php, line 49

Class

BlockPermissionsBrowserTestBase
Base class for block_permissions tests.

Namespace

Drupal\Tests\block_permissions\Functional

Code

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

  // Enable second theme.
  \Drupal::service('theme_installer')
    ->install([
    $this->secondTheme,
  ], TRUE);

  // Add blocks to default theme.
  $this->pageTitleBlock = $this
    ->drupalPlaceBlock('page_title_block');
  $this->systemBrandingBlock = $this
    ->drupalPlaceBlock('system_branding_block');
}