public function BlockInstanceTest::setUp in Collapsiblock 4.x
Same name and namespace in other branches
- 3.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\FunctionalCode
public function setUp() : void {
parent::setUp();
$this->collapsiblockBlockAdminUser = $this
->drupalCreateUser([
'administer blocks',
'access administration pages',
]);
$this->collapsiblockTestBlock = $this
->drupalPlaceBlock('system_powered_by_block');
}