You are here

protected function ModuleUninstallTest::uninstallModules in Thunder 6.2.x

Same name and namespace in other branches
  1. 8.5 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
  2. 8.2 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
  3. 8.3 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
  4. 8.4 tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
  5. 6.0.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()
  6. 6.1.x tests/src/Functional/ModuleUninstallTest.php \Drupal\Tests\thunder\Functional\ModuleUninstallTest::uninstallModules()

Uninstall modules.

Parameters

array $modules: Modules that should be uninstalled.

1 call to ModuleUninstallTest::uninstallModules()
ModuleUninstallTest::testModules in tests/src/Functional/ModuleUninstallTest.php
Compare active configuration with configuration Yaml files.

File

tests/src/Functional/ModuleUninstallTest.php, line 63

Class

ModuleUninstallTest
Test for checking of module uninstall functionality.

Namespace

Drupal\Tests\thunder\Functional

Code

protected function uninstallModules(array $modules = []) {
  if ($modules) {
    $success = $this->container
      ->get('module_installer')
      ->uninstall($modules, TRUE);
    $this
      ->assertTrue($success);
    $this
      ->rebuildContainer();
  }
}