function BrowserTestBase::getMinkDriverArgs

Same name in other branches
  1. 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
  2. 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
  3. 11.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()

Get the Mink driver args from an environment variable, if it is set. Can be overridden in a derived class so it is possible to use a different value for a subset of tests, e.g. the JavaScript tests.

Return value

string|false The JSON-encoded argument string. False if it is not set.

2 calls to BrowserTestBase::getMinkDriverArgs()
BrowserTestBase::getDefaultDriverInstance in core/tests/Drupal/Tests/BrowserTestBase.php
Gets an instance of the default Mink driver.
WebDriverTestBase::getMinkDriverArgs in core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php
Get the Mink driver args from an environment variable, if it is set. Can be overridden in a derived class so it is possible to use a different value for a subset of tests, e.g. the JavaScript tests.
1 method overrides BrowserTestBase::getMinkDriverArgs()
WebDriverTestBase::getMinkDriverArgs in core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php
Get the Mink driver args from an environment variable, if it is set. Can be overridden in a derived class so it is possible to use a different value for a subset of tests, e.g. the JavaScript tests.

File

core/tests/Drupal/Tests/BrowserTestBase.php, line 333

Class

BrowserTestBase
Provides a test case for functional Drupal tests.

Namespace

Drupal\Tests

Code

protected function getMinkDriverArgs() {
    return getenv('MINK_DRIVER_ARGS');
}

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