From: Mark A. Hershberger Date: Wed, 10 Feb 2010 10:47:02 +0000 (+0000) Subject: commit changes to ApiSetup that are needed to make the X-Git-Tag: 1.31.0-rc.0~37840 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=e024b301dc47c255ad9fc8a64373217e60c50cdc;p=lhc%2Fweb%2Fwiklou.git commit changes to ApiSetup that are needed to make the chunked uploading tests work. --- 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(); }