* Use MediaWikiTestCase::getNewTempFile and getNewTempDirectory instead of wfTempDir(). The upload api tests wrote a tempnam() file directly (where wfTempDir() is typically shared with other systems and concurrent runs). Use MediaWikiTestCase::getNewTempFile and getNewTempDirectory instead. This also ensures its removal by the teardown handler without needing manual unlink() calls. And it doesn't rely on the test passing. (Many unlink calls where at the bottom of tests, which wouldn't be reached in case of failure). * For the upload test, the presistent storing of 'Oberaargletscher_from_Oberaar.jpg' (downloaded from Commons) was removed. Note that this didn't work for Jenkins builds anyway as Jenkins builds set $wgTmpDirectory to a unique directory in tmpfs associated with an individual build. * For filebackend tests, moved directory creation from the dataProvider to the main test. Implemented addTmpFiles() to allow subclasses to register additional files (created by other means) to be cleaned up also. Removed unused $tmpName and $toPath parameters in data provider for FileBackendTest::testStore. And fixed weird double $op2 variable name to be called $op3. * Skipped parserTest.inc, MockFileBackend.php, and UploadFromUrlTestSuite.php as those don't use MediaWikiTestCase. Change-Id: Ic7feb06ef0c1006eb99485470a1a59419f972545 |
||
|---|---|---|
| .. | ||
| GlobalTest.php | ||
| GlobalWithDBTest.php | ||
| README | ||
| wfAppendQueryTest.php | ||
| wfAssembleUrlTest.php | ||
| wfBaseConvertTest.php | ||
| wfBaseNameTest.php | ||
| wfBCP47Test.php | ||
| wfExpandUrlTest.php | ||
| wfGetCallerTest.php | ||
| wfParseUrlTest.php | ||
| wfRemoveDotSegmentsTest.php | ||
| wfShellExecTest.php | ||
| wfShorthandToIntegerTest.php | ||
| wfThumbIsStandardTest.php | ||
| wfTimestampTest.php | ||
| wfUrlencodeTest.php | ||
This directory hold tests for includes/GlobalFunctions.php file which is a pile of functions.