aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/SeleniumConfigurationTest.php
diff options
context:
space:
mode:
authorumherirrender <umherirrender_de.wp@web.de>2013-03-21 20:35:44 +0100
committerumherirrender <umherirrender_de.wp@web.de>2013-03-21 20:35:44 +0100
commitff3485ec99de12c6328e2b73c8c3e2026ecf772a (patch)
tree7d76525b7e679c5db26a234aa0bbe85967a28eeb /tests/phpunit/includes/SeleniumConfigurationTest.php
parent84bf80676127402141e65577fa21557a7874b393 (diff)
downloadmediawikicore-ff3485ec99de12c6328e2b73c8c3e2026ecf772a.tar.gz
mediawikicore-ff3485ec99de12c6328e2b73c8c3e2026ecf772a.zip
Tests: Use more setMwGlobals
Change some tests to use setMwGlobals to have restoring of globals after the test. This also removes some save/restore code, which is not needed, due to the automatically restoring on tearDown with setMwGlobals. Change-Id: I8d2ac9f6cc14f0bd4ee8eb851c09f2e71babc6e0
Diffstat (limited to 'tests/phpunit/includes/SeleniumConfigurationTest.php')
-rw-r--r--tests/phpunit/includes/SeleniumConfigurationTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/SeleniumConfigurationTest.php b/tests/phpunit/includes/SeleniumConfigurationTest.php
index 3422c90c4229..4b49f639e811 100644
--- a/tests/phpunit/includes/SeleniumConfigurationTest.php
+++ b/tests/phpunit/includes/SeleniumConfigurationTest.php
@@ -138,8 +138,8 @@ testBrowser = "firefox"
$seleniumSettings = array();
$seleniumBrowsers = array();
$seleniumTestSuites = array();
- global $wgSeleniumConfigFile;
- $wgSeleniumConfigFile = '';
+ $this->setMwGlobals( 'wgSeleniumConfigFile', '' );
+
SeleniumConfig::getSeleniumSettings( $seleniumSettings,
$seleniumBrowsers,
$seleniumTestSuites );
@@ -152,9 +152,9 @@ testBrowser = "firefox"
$seleniumSettings = array();
$seleniumBrowsers = array();
$seleniumTestSuites = array();
- global $wgSeleniumConfigFile;
$this->writeToTempFile( $this->testConfig0 );
- $wgSeleniumConfigFile = $this->tempFileName;
+ $this->setMwGlobals( 'wgSeleniumConfigFile', $this->tempFileName );
+
SeleniumConfig::getSeleniumSettings( $seleniumSettings,
$seleniumBrowsers,
$seleniumTestSuites );