protected function EntityDeriverTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php \Drupal\KernelTests\Core\Entity\EntityDeriverTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDeriverTest.php, line 41
Class
- EntityDeriverTest
- Tests EntityDeriver functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('comment');
NodeType::create([
'type' => 'article',
'name' => 'Article',
])
->save();
CommentType::create([
'id' => 'comment',
'name' => 'Default comment',
'target_entity_type_id' => 'node',
])
->save();
entity_test_create_bundle('foo', NULL, 'entity_test_no_bundle');
entity_test_create_bundle('entity_test_no_bundle', NULL, 'entity_test_no_bundle');
$this->typedDataManager = $this->container
->get('typed_data_manager');
}