function InstallUninstallTest::assertModuleSuccessfullyInstalled

Same name in other branches
  1. 9 core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php \Drupal\Tests\system\Functional\Module\InstallUninstallTest::assertModuleSuccessfullyInstalled()

Asserts that a module was successfully installed.

Parameters

string $name: Name of the module to check.

1 call to InstallUninstallTest::assertModuleSuccessfullyInstalled()
InstallUninstallTest::testInstallUninstall in core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php
Tests that a fixed set of modules can be installed and uninstalled.

File

core/modules/system/tests/src/Functional/Module/InstallUninstallTest.php, line 248

Class

InstallUninstallTest
Install/uninstall core module and confirm table creation/deletion.

Namespace

Drupal\Tests\system\Functional\Module

Code

protected function assertModuleSuccessfullyInstalled($name) {
    $this->assertModules([
        $name,
    ], TRUE);
    $this->assertModuleTablesExist($name);
    $this->assertModuleConfig($name);
}

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