public function TestModuleContext::uninstall in Lightning Core 8.5
Same name and namespace in other branches
- 8 tests/contexts/TestModuleContext.behat.inc \Acquia\LightningExtension\Context\TestModuleContext::uninstall()
- 8.2 tests/contexts/TestModuleContext.behat.inc \Acquia\LightningExtension\Context\TestModuleContext::uninstall()
- 8.3 tests/contexts/TestModuleContext.behat.inc \Acquia\LightningExtension\Context\TestModuleContext::uninstall()
- 8.4 tests/contexts/TestModuleContext.behat.inc \Acquia\LightningExtension\Context\TestModuleContext::uninstall()
Uninstalls any test modules installed for the scenario.
@AfterScenario
Parameters
\Behat\Behat\Hook\Scope\AfterScenarioScope $scope: The scenario scope.
File
- tests/
contexts/ TestModuleContext.behat.inc, line 81
Class
- TestModuleContext
- Allows test modules to be installed during a scenario and uninstalled after.
Namespace
Acquia\LightningExtension\ContextCode
public function uninstall(AfterScenarioScope $scope) {
$modules = $this
->getModules($scope);
if ($modules) {
\Drupal::service('module_installer')
->uninstall($modules);
}
}