protected function SimpleClassTest::setUp in Block Style Plugins 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/SimpleClassTest.php \Drupal\Tests\block_style_plugins\Functional\SimpleClassTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ SimpleClassTest.php, line 34
Class
- SimpleClassTest
- Test a simple class being added in a text box.
Namespace
Drupal\Tests\block_style_plugins\FunctionalCode
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',
]);
}