MediaWiki
1.23.1
|
@covers Maintenance More...
Protected Member Functions | |
setUp () | |
tearDown () | |
![]() | |
arrayWrap (array $elements) | |
Utility method taking an array of elements and wrapping each element in it's own array. More... | |
assertArrayEquals (array $expected, array $actual, $ordered=false, $named=false) | |
Assert that two arrays are equal. More... | |
assertException ( $code, $expected='Exception', $message='') | |
Asserts that an exception of the specified type occurs when running the provided code. More... | |
assertHTMLEquals ( $expected, $actual, $msg='') | |
Put each HTML element on its own line and then equals() the results. More... | |
assertSelect ( $table, $fields, $condition, array $expectedRows) | |
Asserts that the given database query yields the rows given by $expectedRows. More... | |
assertType ( $type, $actual, $message='') | |
Asserts the type of the provided value. More... | |
assertTypeOrValue ( $type, $actual, $value=false, $message='') | |
Asserts that the provided variable is of the specified internal type or equals the $value argument. More... | |
assertValidHtmlDocument ( $html) | |
Asserts that the given string is valid HTML document. More... | |
assertValidHtmlSnippet ( $html) | |
Asserts that the given string is a valid HTML snippet. More... | |
checkDbIsSupported () | |
checkHasDiff3 () | |
Check, if $wgDiff3 is set and ready to merge Will mark the calling test as skipped, if not ready. More... | |
checkHasGzip () | |
Check whether we have the 'gzip' commandline utility, will skip the test whenever "gzip -V" fails. More... | |
checkPHPExtension ( $extName) | |
Check if $extName is a loaded PHP extension, will skip the test whenever it is not loaded. More... | |
getDefaultWikitextNS () | |
Returns the ID of a namespace that defaults to Wikitext. More... | |
getNewTempDirectory () | |
obtains a new temporary directory More... | |
getNewTempFile () | |
Obtains a new temporary file name. More... | |
isWikitextNS ( $ns) | |
Returns true if the given namespace defaults to Wikitext according to $wgNamespaceContentModels. More... | |
mergeMwGlobalArrayValue ( $name, $values) | |
Merges the given values into a MW global array variable. More... | |
objectAssociativeSort (array &$array) | |
Does an associative sort that works for objects. More... | |
setMwGlobals ( $pairs, $value=null) | |
stashMwGlobals ( $globalKeys) | |
Stashes the global, will be restored in tearDown() More... | |
Private Member Functions | |
assertOutputPrePostShutdown ( $preShutdownOutput, $expectNLAppending) | |
asserts the output before and after simulating shutdown More... | |
Private Attributes | |
MaintenanceFixup | $m |
The main Maintenance instance that is used for testing. More... | |
Additional Inherited Members | |
![]() | |
static | listTables ( $db) |
static | setupTestDB (DatabaseBase $db, $prefix) |
Creates an empty skeleton of the wiki database by cloning its structure to equivalent tables using the given $prefix. More... | |
static | teardownTestDB () |
Restores MediaWiki to using the table set (table prefix) it was using before setupTestDB() was called. More... | |
![]() | |
const | DB_PREFIX = 'unittest_' |
Table name prefixes. More... | |
const | ORA_DB_PREFIX = 'ut_' |
![]() | |
static | $users |
![]() | |
static | stripStringKeys (&$r) |
Utility function for eliminating all string keys from an array. More... | |
![]() | |
DatabaseBase | $db |
array | $supportedDBs |
array | $tablesUsed = array() |
@covers Maintenance
Definition at line 132 of file MaintenanceTest.php.
|
private |
asserts the output before and after simulating shutdown
This function simulates shutdown of self::m.
$preShutdownOutput | string: expected output before simulating shutdown |
$expectNLAppending | bool: Whether or not shutdown simulation is expected to add a newline to the output. If false, $preShutdownOutput is the expected output after shutdown simulation. Otherwise, $preShutdownOutput with an appended newline is the expected output after shutdown simulation. |
Definition at line 165 of file MaintenanceTest.php.
Referenced by testCleanupChanneledAfterNLOutput(), testCleanupChanneledAfterNLOutputWChannel(), testCleanupChanneledAfterNLOutputWNullChannel(), testCleanupChanneledAfterOutput(), testCleanupChanneledAfterOutputChanneledWChannel(), testCleanupChanneledAfterOutputChanneledWNullChannel(), testCleanupChanneledAfterOutputChanneledWOChannel(), testCleanupChanneledAfterOutputWChannel(), testCleanupChanneledAfterOutputWNullChannel(), testCleanupChanneledClean(), testMultipleMaintenanceObjectsInteractionCleanupChanneledWChannel(), testMultipleMaintenanceObjectsInteractionOutput(), testMultipleMaintenanceObjectsInteractionOutputChanneled(), testMultipleMaintenanceObjectsInteractionOutputChanneledWChannel(), testMultipleMaintenanceObjectsInteractionOutputChanneledWNullChannel(), testMultipleMaintenanceObjectsInteractionOutputWChannel(), testMultipleMaintenanceObjectsInteractionOutputWChannelNL(), testMultipleMaintenanceObjectsInteractionOutputWNullChannel(), testMultipleMaintenanceObjectsInteractionOutputWNullChannelNL(), testOutputChanneledEmpty(), testOutputChanneledString(), testOutputChanneledStringNLString(), testOutputChanneledStringNLStringNLArbitraryAgain(), testOutputChanneledStringString(), testOutputChanneledWAndWOChannelStringStartW(), testOutputChanneledWAndWOChannelStringStartWO(), testOutputChanneledWChannelIntermittentEmpty(), testOutputChanneledWChannelIntermittentFalse(), testOutputChanneledWChannelString(), testOutputChanneledWChannelStringNLString(), testOutputChanneledWChannelStringNLStringNLArbitraryAgain(), testOutputChanneledWChannelStringString(), testOutputChanneledWChannelTypeSwitch(), testOutputChanneledWMultipleChannelsChannelAfterNullChange(), testOutputChanneledWMultipleChannelsChannelChange(), testOutputChanneledWMultipleChannelsChannelChangeEnclosedNull(), testOutputChanneledWNullChannelEmpty(), testOutputChanneledWNullChannelIntermittentEmpty(), testOutputChanneledWNullChannelIntermittentFalse(), testOutputChanneledWNullChannelString(), testOutputChanneledWNullChannelStringNLString(), testOutputChanneledWNullChannelStringNLStringNLArbitraryAgain(), testOutputChanneledWNullChannelStringString(), testOutputChanneledWOChannelIntermittentEmpty(), testOutputChanneledWOChannelIntermittentFalse(), testOutputEmpty(), testOutputIntermittentEmpty(), testOutputIntermittentFalse(), testOutputIntermittentFalseAfterOtherChannel(), testOutputString(), testOutputStringNL(), testOutputStringNLNL(), testOutputStringNLString(), testOutputStringNLStringNL(), testOutputStringNLStringNLArbitrary(), testOutputStringNLStringNLArbitraryAgain(), testOutputStringNLStringNLLinewise(), testOutputStringString(), testOutputWAndWOChannelStringStartW(), testOutputWAndWOChannelStringStartWO(), testOutputWChannelIntermittentEmpty(), testOutputWChannelIntermittentFalse(), testOutputWChannelString(), testOutputWChannelStringNL(), testOutputWChannelStringNLNL(), testOutputWChannelStringNLString(), testOutputWChannelStringNLStringNL(), testOutputWChannelStringNLStringNLArbitrary(), testOutputWChannelStringNLStringNLArbitraryAgain(), testOutputWChannelStringNLStringNLLinewise(), testOutputWChannelTypeSwitch(), testOutputWMultipleChannelsChannelChange(), testOutputWMultipleChannelsChannelChangeNL(), testOutputWNullChannelEmpty(), testOutputWNullChannelIntermittentEmpty(), testOutputWNullChannelIntermittentFalse(), testOutputWNullChannelString(), testOutputWNullChannelStringNL(), testOutputWNullChannelStringNLNL(), testOutputWNullChannelStringNLString(), testOutputWNullChannelStringNLStringNL(), testOutputWNullChannelStringNLStringNLArbitrary(), testOutputWNullChannelStringNLStringNLArbitraryAgain(), testOutputWNullChannelStringNLStringNLLinewise(), and testOutputWNullChannelStringString().
|
protected |
Reimplemented from MediaWikiTestCase.
Definition at line 140 of file MaintenanceTest.php.
|
protected |
Reimplemented from MediaWikiTestCase.
Definition at line 145 of file MaintenanceTest.php.
MaintenanceTest::testCleanupChanneledAfterNLOutput | ( | ) |
Definition at line 660 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterNLOutputWChannel | ( | ) |
Definition at line 672 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterNLOutputWNullChannel | ( | ) |
Definition at line 666 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutput | ( | ) |
Definition at line 642 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutputChanneledWChannel | ( | ) |
Definition at line 690 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutputChanneledWNullChannel | ( | ) |
Definition at line 684 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutputChanneledWOChannel | ( | ) |
Definition at line 678 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutputWChannel | ( | ) |
Definition at line 654 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledAfterOutputWNullChannel | ( | ) |
Definition at line 648 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testCleanupChanneledClean | ( | ) |
Definition at line 637 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionCleanupChanneledWChannel | ( | ) |
Definition at line 792 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutput | ( | ) |
Definition at line 696 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputChanneled | ( | ) |
Definition at line 756 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputChanneledWChannel | ( | ) |
Definition at line 780 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputChanneledWNullChannel | ( | ) |
Definition at line 768 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputWChannel | ( | ) |
Definition at line 720 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputWChannelNL | ( | ) |
Definition at line 744 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputWNullChannel | ( | ) |
Definition at line 708 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testMultipleMaintenanceObjectsInteractionOutputWNullChannelNL | ( | ) |
Definition at line 732 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledEmpty | ( | ) |
Definition at line 458 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledString | ( | ) |
Definition at line 463 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledStringNLString | ( | ) |
Definition at line 474 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 479 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledStringString | ( | ) |
Definition at line 468 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWAndWOChannelStringStartW | ( | ) |
Definition at line 581 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWAndWOChannelStringStartWO | ( | ) |
Definition at line 573 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelIntermittentEmpty | ( | ) |
Definition at line 623 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelIntermittentFalse | ( | ) |
Definition at line 630 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelString | ( | ) |
Definition at line 522 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelStringNLString | ( | ) |
Definition at line 527 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 538 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelStringString | ( | ) |
Definition at line 532 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWChannelTypeSwitch | ( | ) |
Definition at line 589 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWMultipleChannelsChannelAfterNullChange | ( | ) |
Definition at line 565 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWMultipleChannelsChannelChange | ( | ) |
Definition at line 549 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWMultipleChannelsChannelChangeEnclosedNull | ( | ) |
Definition at line 557 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelEmpty | ( | ) |
Definition at line 490 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelIntermittentEmpty | ( | ) |
Definition at line 609 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelIntermittentFalse | ( | ) |
Definition at line 616 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelString | ( | ) |
Definition at line 495 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelStringNLString | ( | ) |
Definition at line 506 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 511 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWNullChannelStringString | ( | ) |
Definition at line 500 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWOChannelIntermittentEmpty | ( | ) |
Definition at line 595 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputChanneledWOChannelIntermittentFalse | ( | ) |
Definition at line 602 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputEmpty | ( | ) |
Definition at line 182 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputIntermittentEmpty | ( | ) |
Definition at line 405 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputIntermittentFalse | ( | ) |
Definition at line 412 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputIntermittentFalseAfterOtherChannel | ( | ) |
Definition at line 419 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputString | ( | ) |
Definition at line 187 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNL | ( | ) |
Definition at line 198 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLNL | ( | ) |
Definition at line 203 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLString | ( | ) |
Definition at line 208 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLStringNL | ( | ) |
Definition at line 213 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLStringNLArbitrary | ( | ) |
Definition at line 224 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 235 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringNLStringNLLinewise | ( | ) |
Definition at line 218 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputStringString | ( | ) |
Definition at line 192 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWAndWOChannelStringStartW | ( | ) |
Definition at line 391 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWAndWOChannelStringStartWO | ( | ) |
Definition at line 383 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelIntermittentEmpty | ( | ) |
Definition at line 441 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelIntermittentFalse | ( | ) |
Definition at line 448 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelString | ( | ) |
Definition at line 310 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNL | ( | ) |
Definition at line 315 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLNL | ( | ) |
Definition at line 320 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLString | ( | ) |
Definition at line 329 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLStringNL | ( | ) |
Definition at line 334 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLStringNLArbitrary | ( | ) |
Definition at line 345 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 356 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelStringNLStringNLLinewise | ( | ) |
Definition at line 339 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWChannelTypeSwitch | ( | ) |
Definition at line 399 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWMultipleChannelsChannelChange | ( | ) |
Definition at line 367 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWMultipleChannelsChannelChangeNL | ( | ) |
Definition at line 375 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelEmpty | ( | ) |
Definition at line 246 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelIntermittentEmpty | ( | ) |
Definition at line 427 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelIntermittentFalse | ( | ) |
Definition at line 434 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelString | ( | ) |
Definition at line 251 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNL | ( | ) |
Definition at line 262 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLNL | ( | ) |
Definition at line 267 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLString | ( | ) |
Definition at line 272 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLStringNL | ( | ) |
Definition at line 277 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLStringNLArbitrary | ( | ) |
Definition at line 288 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLStringNLArbitraryAgain | ( | ) |
Definition at line 299 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringNLStringNLLinewise | ( | ) |
Definition at line 282 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
MaintenanceTest::testOutputWNullChannelStringString | ( | ) |
Definition at line 256 of file MaintenanceTest.php.
References assertOutputPrePostShutdown().
|
private |
The main Maintenance instance that is used for testing.
Definition at line 138 of file MaintenanceTest.php.