Tweak documentation
authorSam Reed <reedy@users.mediawiki.org>
Sun, 27 Feb 2011 21:11:45 +0000 (21:11 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 27 Feb 2011 21:11:45 +0000 (21:11 +0000)
Fix constant use in UploadTest

includes/filerepo/FileRepo.php
includes/upload/UploadBase.php
tests/phpunit/includes/UploadTest.php

index 6077722..eced312 100644 (file)
@@ -701,6 +701,8 @@ abstract class FileRepo {
        
        /**
         * Get an UploadStash associated with this repo.
+        *
+        * @return UploadStash
         */
        function getUploadStash() {
                return new UploadStash( $this );
index 037aa83..fdbd0fc 100644 (file)
@@ -707,7 +707,7 @@ abstract class UploadBase {
         * API request to find this stashed file again.
         *
         * @param $key String: (optional) the session key used to find the file info again. If not supplied, a key will be autogenerated.
-        * @return File stashed file
+        * @return UploadStashFile stashed file
         */
        public function stashSessionFile( $key = null ) { 
                $stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash();
index ebec1b1..da19c90 100644 (file)
@@ -106,7 +106,7 @@ class UploadTest extends MediaWikiTestCase {
                unlink( $filename );
 
                $this->assertEquals(
-                       array( 'status' => UploadTestHandler::OK ), $result );
+                       array( 'status' => UploadBase::OK ), $result );
 
                $wgMaxUploadSize = $savedGlobal;  // restore global
        }