MediaWiki
REL1_22
|
Test class for Revision storage. More...
Test class for Revision storage.
ContentHandler Database ^--- important, causes temporary tables to be used instead of the real database
medium ^--- important, causes tests not to fail with timeout
Definition at line 13 of file RevisionStorageTest.php.
RevisionStorageTest::__construct | ( | $ | name = null , |
array $ | data = array() , |
||
$ | dataName = '' |
||
) |
Reimplemented from MediaWikiTestCase.
Definition at line 19 of file RevisionStorageTest.php.
RevisionStorageTest::assertRevEquals | ( | Revision $ | orig, |
Revision $ | rev = null |
||
) | [protected] |
Definition at line 124 of file RevisionStorageTest.php.
References $rev, Revision\getContentFormat(), Revision\getContentModel(), Revision\getId(), Revision\getPage(), Revision\getSha1(), Revision\getTimestamp(), and Revision\getUser().
RevisionStorageTest::createPage | ( | $ | page, |
$ | text, | ||
$ | model = null |
||
) | [protected] |
Definition at line 98 of file RevisionStorageTest.php.
References MWNamespace\getCanonicalName(), MediaWikiTestCase\getDefaultWikitextNS(), ContentHandler\makeContent(), and Title\newFromText().
Referenced by setUp().
RevisionStorageTest::makeRevision | ( | $ | props = null | ) | [protected] |
Definition at line 73 of file RevisionStorageTest.php.
Referenced by RevisionTest_ContentHandlerUseDB\testGetContentFormat(), and RevisionTest_ContentHandlerUseDB\testGetContentModel().
static RevisionStorageTest::provideUserWasLastToEdit | ( | ) | [static] |
RevisionStorageTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Reimplemented in RevisionTest_ContentHandlerUseDB.
Definition at line 40 of file RevisionStorageTest.php.
References $wgContLang, cache, createPage(), MWNamespace\getCanonicalNamespaces(), and global.
Reimplemented from MediaWikiTestCase.
Definition at line 58 of file RevisionStorageTest.php.
References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.
Definition at line 139 of file RevisionStorageTest.php.
Definition at line 207 of file RevisionStorageTest.php.
Definition at line 293 of file RevisionStorageTest.php.
Definition at line 275 of file RevisionStorageTest.php.
Reimplemented in RevisionTest_ContentHandlerUseDB.
Definition at line 343 of file RevisionStorageTest.php.
Reimplemented in RevisionTest_ContentHandlerUseDB.
Definition at line 326 of file RevisionStorageTest.php.
Definition at line 406 of file RevisionStorageTest.php.
Definition at line 251 of file RevisionStorageTest.php.
Definition at line 389 of file RevisionStorageTest.php.
Definition at line 314 of file RevisionStorageTest.php.
Definition at line 263 of file RevisionStorageTest.php.
Definition at line 363 of file RevisionStorageTest.php.
Definition at line 176 of file RevisionStorageTest.php.
Definition at line 196 of file RevisionStorageTest.php.
Definition at line 157 of file RevisionStorageTest.php.
Definition at line 423 of file RevisionStorageTest.php.
Definition at line 303 of file RevisionStorageTest.php.
Reimplemented in RevisionTest_ContentHandlerUseDB.
Definition at line 230 of file RevisionStorageTest.php.
RevisionStorageTest::testUserWasLastToEdit | ( | $ | sinceIdx, |
$ | expectedLast | ||
) |
provideUserWasLastToEdit
Definition at line 457 of file RevisionStorageTest.php.
WikiPage RevisionStorageTest::$the_page |
$the_page
Definition at line 17 of file RevisionStorageTest.php.