You are here

public static function DrupalContext::installTestModule in Views field formatter 8.2

Installs the test module before executing any tests.

@BeforeSuite

Parameters

\Behat\Testwork\Hook\Scope\BeforeSuiteScope $scope: The hook scope.

File

tests/Behat/DrupalContext.php, line 24

Class

DrupalContext
Class DrupalContext.

Namespace

Drupal\Tests\views_field_formatter\Behat

Code

public static function installTestModule(BeforeSuiteScope $scope) : void {
  \Drupal::service('module_installer')
    ->install([
    'views_field_formatter_test',
  ]);
}