You are here

protected function EntityUnitTestBase::installModule in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityUnitTestBase.php \Drupal\system\Tests\Entity\EntityUnitTestBase::installModule()

Installs a module and refreshes services.

Parameters

string $module: The module to install.

3 calls to EntityUnitTestBase::installModule()
EntitySchemaTest::testCustomFieldCreateDelete in core/modules/system/src/Tests/Entity/EntitySchemaTest.php
Tests the custom bundle field creation and deletion.
EntitySchemaTest::testEntitySchemaUpdate in core/modules/system/src/Tests/Entity/EntitySchemaTest.php
Tests that entity schema responds to changes in the entity type definition.
EntitySchemaTest::testModifyingTranslatableColumnSchema in core/modules/system/src/Tests/Entity/EntitySchemaTest.php
Tests that modifying the UUID field for a translatable entity works.

File

core/modules/system/src/Tests/Entity/EntityUnitTestBase.php, line 154
Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.

Class

EntityUnitTestBase
Defines an abstract test base for entity unit tests.

Namespace

Drupal\system\Tests\Entity

Code

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