function WebDriverTestBase::installModulesFromClassProperty

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::installModulesFromClassProperty()
  2. 8.9.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::installModulesFromClassProperty()
  3. 11.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::installModulesFromClassProperty()

Overrides FunctionalTestSetupTrait::installModulesFromClassProperty

1 method overrides WebDriverTestBase::installModulesFromClassProperty()
PerformanceTestBase::installModulesFromClassProperty in core/tests/Drupal/FunctionalJavascriptTests/PerformanceTestBase.php
Install modules defined by `static::$modules`.

File

core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php, line 72

Class

WebDriverTestBase
Runs a browser test using a driver that supports JavaScript.

Namespace

Drupal\FunctionalJavascriptTests

Code

protected function installModulesFromClassProperty(ContainerInterface $container) {
    self::$modules = [
        'js_testing_ajax_request_test',
        'js_testing_log_test',
        'jquery_keyevent_polyfill_test',
    ];
    if ($this->disableCssAnimations) {
        self::$modules[] = 'css_disable_transitions_test';
    }
    parent::installModulesFromClassProperty($container);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.