function InlineBlockUsageTest::setUp
Same name in other branches
- 11.x core/modules/layout_builder/tests/src/Kernel/InlineBlockUsageTest.php \Drupal\Tests\layout_builder\Kernel\InlineBlockUsageTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
modules/ layout_builder/ tests/ src/ Kernel/ InlineBlockUsageTest.php, line 46
Class
- InlineBlockUsageTest
- Class for testing the InlineBlockUsage service.
Namespace
Drupal\Tests\layout_builder\KernelCode
protected function setUp() : void {
parent::setUp();
$this->database = $this->container
->get('database');
$this->inlineBlockUsage = $this->container
->get('inline_block.usage');
$this->installSchema('layout_builder', [
'inline_block_usage',
]);
entity_test_create_bundle('bundle_with_extra_fields');
$this->installEntitySchema('entity_test');
$this->entity = EntityTest::create();
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.