function BlockContentDeletionTest::setUp
Same name in other branches
- 9 core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php \Drupal\Tests\block_content\Kernel\BlockContentDeletionTest::setUp()
- 8.9.x core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php \Drupal\Tests\block_content\Kernel\BlockContentDeletionTest::setUp()
- 10 core/modules/block_content/tests/src/Kernel/BlockContentDeletionTest.php \Drupal\Tests\block_content\Kernel\BlockContentDeletionTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentDeletionTest.php, line 30
Class
- BlockContentDeletionTest
- Tests that deleting a block clears the cached definitions.
Namespace
Drupal\Tests\block_content\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('user');
$this->installEntitySchema('block_content');
$this->installConfig([
'block_content',
]);
$this->container
->get('theme_installer')
->install([
'stark',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.