function BrowserTestBase::getMinkDriverArgs
Same name in other branches
- 9 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
- 8.9.x core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
- 10 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
Gets the Mink driver args from an environment variable.
The environment variable 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 - Gets the Mink driver args from an environment variable.
1 method overrides BrowserTestBase::getMinkDriverArgs()
- WebDriverTestBase::getMinkDriverArgs in core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php - Gets the Mink driver args from an environment variable.
File
-
core/
tests/ Drupal/ Tests/ BrowserTestBase.php, line 328
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
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.