From e024b301dc47c255ad9fc8a64373217e60c50cdc Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 10 Feb 2010 10:47:02 +0000 Subject: [PATCH] commit changes to ApiSetup that are needed to make the chunked uploading tests work. --- maintenance/tests/ApiSetup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/tests/ApiSetup.php b/maintenance/tests/ApiSetup.php index 991dba3ee3..d5fbac72ba 100644 --- a/maintenance/tests/ApiSetup.php +++ b/maintenance/tests/ApiSetup.php @@ -8,7 +8,7 @@ abstract class ApiSetup extends PHPUnit_Framework_TestCase { function setup() { global $wgServerName, $wgServer, $wgContLang, $wgAuth, $wgScriptPath, - $wgScriptExtension, $wgMemc; + $wgScriptExtension, $wgMemc, $wgRequest; if($wgServerName == "localhost" || $wgServer == "http://localhost") { $this->markTestIncomplete('This test needs $wgServerName and $wgServer to '. @@ -19,6 +19,7 @@ abstract class ApiSetup extends PHPUnit_Framework_TestCase { $wgMemc = new FakeMemCachedClient; $wgContLang = Language::factory( 'en' ); $wgAuth = new StubObject( 'wgAuth', 'AuthPlugin' ); + $wgRequest = new FauxRequest(array()); self::setupUser(); } -- 2.20.1