function EntityKernelTestBase::installModule

Same name and namespace in other branches
  1. 8.9.x 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()
  3. 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\Entity

Code

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.