function WebDriverTestBaseTest::putEnv
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Test/WebDriverTestBaseTest.php \Drupal\Tests\Core\Test\WebDriverTestBaseTest::putEnv()
Sets or deletes an environment variable.
Parameters
string $variable: The environment variable to set or delete.
string|null $value: The value to set the variable to. If the value is NULL then the environment variable will be unset.
Return value
void
1 call to WebDriverTestBaseTest::putEnv()
- WebDriverTestBaseTest::testCapabilities in core/
tests/ Drupal/ Tests/ Core/ Test/ WebDriverTestBaseTest.php - Tests W3C setting is added to goog:chromeOptions as expected.
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ WebDriverTestBaseTest.php, line 51
Class
- WebDriverTestBaseTest
- @coversDefaultClass \Drupal\FunctionalJavascriptTests\WebDriverTestBase @group Test @runTestsInSeparateProcesses
Namespace
Drupal\Tests\Core\TestCode
private function putEnv(string $variable, ?string $value) : void {
if (is_string($value)) {
putenv($variable . "=" . $value);
}
else {
putenv($variable);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.