You are here

public function PermissionsByTermDrupalSubContext::iAmInstallingTheModule in Permissions by Term 8.2

@Then /^I am installing the "([^"]*)" module$/

File

tests/src/Behat/Context/permissions_by_term.behat.inc, line 393

Class

PermissionsByTermDrupalSubContext
Class PermissionsByTermContext

Namespace

Drupal\Tests\permissions_by_term\Behat\PermissionsByTermDrupalSubContext

Code

public function iAmInstallingTheModule(string $moduleName) : void {
  \Drupal::service('module_installer')
    ->install([
    $moduleName,
  ]);

  // Required to import translations or other batch processes which runs after
  // a module is installed. (by default via backend which would runs a batch)
  $batch =& batch_get();
  if (empty($batch)) {
    return;
  }
  $batch['progressive'] = FALSE;
  batch_process();
}