function InstallTest::setUp

Same name in other branches
  1. 11.x core/modules/system/tests/src/Kernel/Module/InstallTest.php \Drupal\Tests\system\Kernel\Module\InstallTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/system/tests/src/Kernel/Module/InstallTest.php, line 27

Class

InstallTest
Tests the installation of modules.

Namespace

Drupal\Tests\system\Kernel\Module

Code

protected function setUp() : void {
    parent::setUp();
    $this->moduleInstaller = $this->container
        ->get('module_installer');
    $this->moduleInstaller
        ->install([
        'module_test',
        'system',
        'user',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.