class AuditLogFeatureContext in Audit Log 8.2
Behat steps for testing the audit_log module.
@codingStandardsIgnoreStart
Hierarchy
- class \AuditLogFeatureContext extends \Drupal\DrupalExtension\Context\RawDrupalContext implements \Behat\Behat\Context\SnippetAcceptingContext
Expanded class hierarchy of AuditLogFeatureContext
1 string reference to 'AuditLogFeatureContext'
File
- tests/
src/ Behat/ features/ bootstrap/ AuditLogFeatureContext.php, line 12
View source
class AuditLogFeatureContext extends RawDrupalContext implements SnippetAcceptingContext {
/**
* Setup for the test suite, enable some required modules and add content
* title.
*
* @BeforeSuite
*/
public static function prepare(BeforeSuiteScope $scope) {
/** @var \Drupal\Core\Extension\ModuleHandler $moduleHandler */
$moduleHandler = \Drupal::service('module_handler');
if (!$moduleHandler
->moduleExists('audit_log')) {
\Drupal::service('module_installer')
->install([
'audit_log',
]);
}
// Also uninstall the inline form errors module for easier testing.
if ($moduleHandler
->moduleExists('inline_form_errors')) {
\Drupal::service('module_installer')
->uninstall([
'inline_form_errors',
]);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuditLogFeatureContext:: |
public static | function | Setup for the test suite, enable some required modules and add content title. |