function EntityUnitTestBase::installModule

Installs a module and refreshes services.

Parameters

string $module: The module to install.

File

core/modules/system/src/Tests/Entity/EntityUnitTestBase.php, line 163

Class

EntityUnitTestBase
Defines an abstract test base for entity unit tests.

Namespace

Drupal\system\Tests\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.