protected function BrowserTestBase::getMinkDriverArgs in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/BrowserTestBase.php \Drupal\Tests\BrowserTestBase::getMinkDriverArgs()
- 10 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.
1 call to BrowserTestBase::getMinkDriverArgs()
- BrowserTestBase::getDefaultDriverInstance in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Gets an instance of the default Mink driver.
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 344
Class
- BrowserTestBase
- Provides a test case for functional Drupal tests.
Namespace
Drupal\TestsCode
protected function getMinkDriverArgs() {
return getenv('MINK_DRIVER_ARGS');
}