You are here

public function SocialDrupalContext::iDisableTheModule in Open Social 8.6

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  2. 8.5 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  3. 8.7 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  4. 8.8 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  5. 10.3.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  6. 10.0.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  7. 10.1.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()
  8. 10.2.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iDisableTheModule()

I disable the module :module_name.

@When /^(?:|I )disable the module "([^"]*)"/

File

tests/behat/features/bootstrap/SocialDrupalContext.php, line 237

Class

SocialDrupalContext
Provides pre-built step definitions for interacting with Open Social.

Namespace

Drupal\social\Behat

Code

public function iDisableTheModule($module_name) {
  $modules = [
    $module_name,
  ];
  \Drupal::service('module_installer')
    ->uninstall($modules);
}