You are here

public function SocialDrupalContext::iEnableTheModule in Open Social 8.2

Same name and namespace in other branches
  1. 8 tests/behat/features/bootstrap/SocialDrupalContext.php \SocialDrupalContext::iEnableTheModule()

I enable the module :module_name.

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

File

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

Class

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

Code

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