You are here

public function BlockInstanceTest::setUp in Collapsiblock 3.x

Same name and namespace in other branches
  1. 4.x tests/src/Functional/BlockInstanceTest.php \Drupal\Tests\collapsiblock\Functional\BlockInstanceTest::setUp()

Overrides CollapsiblockFunctionalTestBase::setUp

File

tests/src/Functional/BlockInstanceTest.php, line 29

Class

BlockInstanceTest
Test Collapsiblock settings on block instances.

Namespace

Drupal\Tests\collapsiblock\Functional

Code

public function setUp() {
  parent::setUp();
  $this->collapsiblockBlockAdminUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'access administration pages',
  ]);
  $this->collapsiblockTestBlock = $this
    ->drupalPlaceBlock('system_powered_by_block');
}