function EntityCrudHookTest::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php \Drupal\KernelTests\Core\Entity\EntityCrudHookTest::setUp()
- 10 core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php \Drupal\KernelTests\Core\Entity\EntityCrudHookTest::setUp()
- 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityCrudHookTest.php \Drupal\KernelTests\Core\Entity\EntityCrudHookTest::setUp()
Overrides EntityKernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityCrudHookTest.php, line 56
Class
- EntityCrudHookTest
- Tests the invocation of hooks when creating, inserting, loading, updating or deleting an entity.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() {
parent::setUp();
$this->installSchema('user', [
'users_data',
]);
$this->installSchema('file', [
'file_usage',
]);
$this->installSchema('node', [
'node_access',
]);
$this->installSchema('comment', [
'comment_entity_statistics',
]);
$this->installConfig([
'node',
'comment',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.