protected function BlockSystemBrandingTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php \Drupal\Tests\block\Functional\BlockSystemBrandingTest::setUp()
Overrides BlockTestBase::setUp
File
- core/
modules/ block/ tests/ src/ Functional/ BlockSystemBrandingTest.php, line 27
Class
- BlockSystemBrandingTest
- Tests branding block display.
Namespace
Drupal\Tests\block\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Set a site slogan.
$this
->config('system.site')
->set('slogan', 'Community plumbing')
->save();
// Add the system branding block to the page.
$this
->drupalPlaceBlock('system_branding_block', [
'region' => 'header',
'id' => 'site-branding',
]);
}