dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Document the wikipage.content hook"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
upload
/
UploadBaseTest.php
diff --git
a/tests/phpunit/includes/upload/UploadBaseTest.php
b/tests/phpunit/includes/upload/UploadBaseTest.php
index
298420b
..
4f17601
100644
(file)
--- a/
tests/phpunit/includes/upload/UploadBaseTest.php
+++ b/
tests/phpunit/includes/upload/UploadBaseTest.php
@@
-1,10
+1,12
@@
<?php
<?php
+
/**
* @group Upload
*/
class UploadBaseTest extends MediaWikiTestCase {
/**
* @group Upload
*/
class UploadBaseTest extends MediaWikiTestCase {
- protected $upload;
+ /** @var UploadTestHandler */
+ protected $upload;
protected function setUp() {
global $wgHooks;
protected function setUp() {
global $wgHooks;
@@
-24,12
+26,12
@@
class UploadBaseTest extends MediaWikiTestCase {
parent::tearDown();
}
parent::tearDown();
}
-
/**
* First checks the return code
* of UploadBase::getTitle() and then the actual returned title
*
* @dataProvider provideTestTitleValidation
/**
* First checks the return code
* of UploadBase::getTitle() and then the actual returned title
*
* @dataProvider provideTestTitleValidation
+ * @covers UploadBase::getTitle
*/
public function testTitleValidation( $srcFilename, $dstFilename, $code, $msg ) {
/* Check the result code */
*/
public function testTitleValidation( $srcFilename, $dstFilename, $code, $msg ) {
/* Check the result code */
@@
-82,6
+84,7
@@
class UploadBaseTest extends MediaWikiTestCase {
/**
* Test the upload verification functions
/**
* Test the upload verification functions
+ * @covers UploadBase::verifyUpload
*/
public function testVerifyUpload() {
/* Setup with zero file size */
*/
public function testVerifyUpload() {
/* Setup with zero file size */
@@
-108,7
+111,6
@@
class UploadBaseTest extends MediaWikiTestCase {
*
* This method should be abstracted so we can test different settings.
*/
*
* This method should be abstracted so we can test different settings.
*/
-
public function testMaxUploadSize() {
global $wgMaxUploadSize;
$savedGlobal = $wgMaxUploadSize; // save global
public function testMaxUploadSize() {
global $wgMaxUploadSize;
$savedGlobal = $wgMaxUploadSize; // save global