You are here

protected function EntityKernelTestBase::installModule in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::installModule()
  2. 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 158

Class

EntityKernelTestBase
Defines an abstract test base for entity kernel tests.

Namespace

Drupal\KernelTests\Core\Entity

Code

protected function installModule($module) {
  $this
    ->enableModules([
    $module,
  ]);
  $this
    ->refreshServices();
}