protected function BlockInvalidRegionTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block/tests/src/Functional/BlockInvalidRegionTest.php \Drupal\Tests\block\Functional\BlockInvalidRegionTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ block/ tests/ src/ Functional/ BlockInvalidRegionTest.php, line 28
Class
- BlockInvalidRegionTest
- Tests that an active block assigned to a non-existing region triggers the warning message and is disabled.
Namespace
Drupal\Tests\block\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an admin user.
$admin_user = $this
->drupalCreateUser([
'administer site configuration',
'access administration pages',
'administer blocks',
]);
$this
->drupalLogin($admin_user);
}