protected function DynamicEntityReferenceConfigEntityTest::setUp in Dynamic Entity Reference 8.2
Overrides EntityKernelTestBase::setUp
File
- tests/
src/ Kernel/ DynamicEntityReferenceConfigEntityTest.php, line 83
Class
- DynamicEntityReferenceConfigEntityTest
- Tests for referencing configuration entities with configurable fields.
Namespace
Drupal\Tests\dynamic_entity_reference\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'config_test',
]);
$this
->installEntitySchema('entity_test_rev');
$this
->installEntitySchema('entity_test_string_id');
$this->configTestReference = $this->container
->get('entity_type.manager')
->getStorage('config_test')
->create([
'id' => 'foo',
'label' => 'Foo',
'style' => 'bar',
]);
$this->configTestReference
->save();
$this->contentEntityReference = $this->container
->get('entity_type.manager')
->getStorage('entity_test_rev')
->create([
'type' => $this->bundle,
]);
$this->contentEntityReference
->save();
}