protected function EntityUsageLayoutBuilderTest::setUp in Entity Usage 8.4
Same name in this branch
- 8.4 tests/src/Functional/EntityUsageLayoutBuilderTest.php \Drupal\Tests\entity_usage\Functional\EntityUsageLayoutBuilderTest::setUp()
- 8.4 tests/src/Kernel/EntityUsageLayoutBuilderTest.php \Drupal\Tests\entity_usage\Kernel\EntityUsageLayoutBuilderTest::setUp()
Same name and namespace in other branches
- 8.2 tests/src/Kernel/EntityUsageLayoutBuilderTest.php \Drupal\Tests\entity_usage\Kernel\EntityUsageLayoutBuilderTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ EntityUsageLayoutBuilderTest.php, line 43
Class
- EntityUsageLayoutBuilderTest
- Tests layout builder usage plugin records usage.
Namespace
Drupal\Tests\entity_usage\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('entity_usage', [
'entity_usage',
]);
$this
->installSchema('system', [
'key_value_expire',
]);
$this
->installEntitySchema('entity_test');
$this
->installEntitySchema('block_content');
LayoutBuilderEntityViewDisplay::create([
'targetEntityType' => 'entity_test',
'bundle' => 'entity_test',
'mode' => 'default',
'status' => TRUE,
])
->enableLayoutBuilder()
->setOverridable()
->save();
}