commit changes to ApiSetup that are needed to make the
authorMark A. Hershberger <mah@users.mediawiki.org>
Wed, 10 Feb 2010 10:47:02 +0000 (10:47 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Wed, 10 Feb 2010 10:47:02 +0000 (10:47 +0000)
chunked uploading tests work.

maintenance/tests/ApiSetup.php

index 991dba3..d5fbac7 100644 (file)
@@ -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();
        }