function EntityKernelTestBase::installModule
Same name in other branches
- 8.9.x 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()
- 11.x 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 152
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.