function EntityDeriverTest::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php \Drupal\KernelTests\Core\Entity\EntityDeriverTest::setUp()
- 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityDeriverTest.php \Drupal\KernelTests\Core\Entity\EntityDeriverTest::setUp()
- 11.x 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 43
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',
'label' => '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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.