protected function BlockSystemBrandingTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/block/tests/src/Functional/BlockSystemBrandingTest.php \Drupal\Tests\block\Functional\BlockSystemBrandingTest::setUp()
- 10 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() {
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',
]);
}