You are here

protected function CheckboxWithExcludeTest::setUp in Block Style Plugins 8

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

Overrides BrowserTestBase::setUp

File

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

Class

CheckboxWithExcludeTest
Test the CheckboxWithExclude plugin.

Namespace

Drupal\Tests\block_style_plugins\Functional

Code

protected function setUp() {
  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',
  ]);
}