protected function EntityKernelTestBase::installModule in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::installModule()
- 10 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::installModule()
Installs a module and refreshes services.
Parameters
string $module: The module to install.
4 calls to EntityKernelTestBase::installModule()
- EntityQueryTest::testConditionOnRevisionMetadataKeys in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityQueryTest.php - Tests entity queries with condition on the revision metadata keys.
- EntitySchemaTest::testCustomFieldCreateDelete in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntitySchemaTest.php - Tests the custom bundle field creation and deletion.
- EntitySchemaTest::testEntitySchemaUpdate in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntitySchemaTest.php - Tests that entity schema responds to changes in the entity type definition.
- EntitySchemaTest::testModifyingTranslatableColumnSchema in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntitySchemaTest.php - Tests that modifying the UUID field for a translatable entity works.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityKernelTestBase.php, line 149
Class
- EntityKernelTestBase
- Defines an abstract test base for entity kernel tests.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function installModule($module) {
$this
->enableModules([
$module,
]);
$this
->refreshServices();
}