class ElasticsearchConnectorFeatureContext in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 tests/src/Behat/features/bootstrap/ElasticsearchConnectorFeatureContext.php \ElasticsearchConnectorFeatureContext
- 8.5 tests/src/Behat/features/bootstrap/ElasticsearchConnectorFeatureContext.php \ElasticsearchConnectorFeatureContext
Behat steps for testing the elasticsearch_connector module.
@codingStandardsIgnoreStart
Hierarchy
- class \ElasticsearchConnectorFeatureContext extends \Drupal\DrupalExtension\Context\RawDrupalContext implements \Behat\Behat\Context\SnippetAcceptingContext
Expanded class hierarchy of ElasticsearchConnectorFeatureContext
2 string references to 'ElasticsearchConnectorFeatureContext'
- behat.yml in tests/
src/ Behat/ behat.yml - tests/src/Behat/behat.yml
- example.behat.local.yml in tests/
src/ Behat/ example.behat.local.yml - tests/src/Behat/example.behat.local.yml
File
- tests/
src/ Behat/ features/ bootstrap/ ElasticsearchConnectorFeatureContext.php, line 12
View source
class ElasticsearchConnectorFeatureContext 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('elasticsearch_connector')) {
\Drupal::service('module_installer')
->install([
'elasticsearch_connector',
]);
}
// 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 |
---|---|---|---|---|
ElasticsearchConnectorFeatureContext:: |
public static | function | Setup for the test suite, enable some required modules and add content title. |