aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/UploadTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move upload tests to upload folderSam Reed2011-06-221-132/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90607
* Kill var_dump from r90603Sam Reed2011-06-221-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90606
* Readd r90538, this time with the missing global $wgHooks;Platonides2011-06-221-2/+9
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90603
* Provisional revert of r90538. I can't replicate the failures, but CI's been ↵Chad Horohoe2011-06-221-8/+2
| | | | | | | complaining since this commit Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90561
* UploadTest::testTitleValidation accessed the database to fetch the interwikis.Platonides2011-06-211-2/+8
| | | | | | | | | | | | phase3/includes/upload/UploadBase.php:620 phase3/tests/phpunit/includes/UploadTest.php:120 phase3/tests/phpunit/includes/UploadTest.php:55 phase3/tests/phpunit/includes/UploadTest.php:35 $wgContLang not needed, TitlePermissionTest.php changes the language, inheriting from MediaWikiLangTestCase Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90538
* Tweak documentationSam Reed2011-02-271-1/+1
| | | | | | | Fix constant use in UploadTest Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82914
* Do r82017 the right way. Fix pointed by Bryan.Platonides2011-02-121-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82018
* Follow up r81883. Readd the extension. This kind of breaks the tempnam() ↵Platonides2011-02-121-1/+1
| | | | | | | guarantee, but otherwise with no extension the uploader returns UploadBase::FILETYPE_MISSING, not UploadBase::SUCCESS. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82017
* Fix for r80992. Remove posix extension requisite. Made to work in non-Unix ↵Platonides2011-02-101-3/+2
| | | | | | | | | systems. Replaced fseek+fwrite with ftruncate() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/81883
* Test uploading a file of size $wgMaxUploadSizeAntoine Musso2011-01-251-0/+36
| | | | | | | | | | TODO: method testMaxUploadSize() shoud be able to use differents settings. The assertion could then get moved elsewhere in a nice helper. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80992
* * verbose and color default output from phpunitChad Horohoe2010-12-281-1/+1
| | | | | | | | * Make a bunch of tests subclass MediaWikiTestCase * Parser tests and ResourceLoaderTest can't subclass it yet due to various issues Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79117
* Properly qualify usage of class constantsSam Reed2010-12-221-7/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78762
* Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. ↵Chad Horohoe2010-12-141-0/+90
They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78383