You are here

protected function DropdownWithIncludeTest::setUp in Block Style Plugins 8.2

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

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DropdownWithIncludeTest.php, line 37

Class

DropdownWithIncludeTest
Tests the DropdownWithInclude plugin.

Namespace

Drupal\Tests\block_style_plugins\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'access administration pages',
  ]);
  $this
    ->drupalLogin($this->adminUser);

  // Place the "Powered By Drupal" block.
  $this
    ->drupalPlaceBlock('system_powered_by_block', [
    'id' => 'poweredbytest',
    'region' => 'content',
  ]);

  // Place the "Breadcrumb" block.
  $this
    ->drupalPlaceBlock('system_breadcrumb_block', [
    'id' => 'breadcrumbtest',
    'region' => 'content',
  ]);
}