From c07330264d560d666ef3dbc48be8649c818ad804 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 27 Feb 2011 21:11:45 +0000 Subject: [PATCH] Tweak documentation Fix constant use in UploadTest --- includes/filerepo/FileRepo.php | 2 ++ includes/upload/UploadBase.php | 2 +- tests/phpunit/includes/UploadTest.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 6077722a27..eced31290b 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -701,6 +701,8 @@ abstract class FileRepo { /** * Get an UploadStash associated with this repo. + * + * @return UploadStash */ function getUploadStash() { return new UploadStash( $this ); diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 037aa8353b..fdbd0fcf81 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -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(); diff --git a/tests/phpunit/includes/UploadTest.php b/tests/phpunit/includes/UploadTest.php index ebec1b141e..da19c90dbf 100644 --- a/tests/phpunit/includes/UploadTest.php +++ b/tests/phpunit/includes/UploadTest.php @@ -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 } -- 2.20.1