MediaWiki
REL1_20
|
Test class for Revision storage. More...
Public Member Functions | |
__construct ($name=null, array $data=array(), $dataName= '') | |
dataUserWasLastToEdit () | |
setUp () | |
testConstructFromRow () | |
Revision::__construct | |
testFetchRevision () | |
Revision::fetchRevision | |
testGetNext () | |
Revision::getNext | |
testGetPage () | |
Revision::getPage | |
testGetPrevious () | |
Revision::getPrevious | |
testGetRawText () | |
Revision::getRawText | |
testGetText () | |
Revision::getText | |
testIsCurrent () | |
Revision::isCurrent | |
testNewFromArchiveRow () | |
Revision::newFromArchiveRow | |
testNewFromId () | |
Revision::newFromId | |
testNewFromRow () | |
Revision::newFromRow | |
testNewNullRevision () | |
Revision::newNullRevision | |
testRevText () | |
Revision::revText | |
testSelectFields () | |
Revision::selectFields | |
testUserWasLastToEdit ($sinceIdx, $expectedLast) | |
dataUserWasLastToEdit | |
Public Attributes | |
$the_page | |
Protected Member Functions | |
assertRevEquals (Revision $orig, Revision $rev=null) | |
createPage ($page, $text, $model=null) | |
makeRevision ($props=null) |
Test class for Revision storage.
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 12 of file RevisionStorageTest.php.
RevisionStorageTest::__construct | ( | $ | name = null , |
array $ | data = array() , |
||
$ | dataName = '' |
||
) |
Reimplemented from MediaWikiTestCase.
Definition at line 16 of file RevisionStorageTest.php.
RevisionStorageTest::assertRevEquals | ( | Revision $ | orig, |
Revision $ | rev = null |
||
) | [protected] |
Definition at line 71 of file RevisionStorageTest.php.
References Revision\getId(), Revision\getPage(), Revision\getSha1(), Revision\getTimestamp(), and Revision\getUser().
Referenced by testConstructFromRow(), testNewFromArchiveRow(), testNewFromId(), and testNewFromRow().
RevisionStorageTest::createPage | ( | $ | page, |
$ | text, | ||
$ | model = null |
||
) | [protected] |
Definition at line 58 of file RevisionStorageTest.php.
References $page, and Title\newFromText().
Referenced by setUp(), testFetchRevision(), testGetNext(), testGetPrevious(), testIsCurrent(), testNewFromArchiveRow(), and testNewNullRevision().
Definition at line 313 of file RevisionStorageTest.php.
RevisionStorageTest::makeRevision | ( | $ | props = null | ) | [protected] |
Definition at line 43 of file RevisionStorageTest.php.
Referenced by testConstructFromRow(), testGetPage(), testGetRawText(), testGetText(), testNewFromId(), testNewFromRow(), and testRevText().
Definition at line 37 of file RevisionStorageTest.php.
References createPage().
Definition at line 84 of file RevisionStorageTest.php.
References $dbr, $res, assertRevEquals(), and makeRevision().
Definition at line 156 of file RevisionStorageTest.php.
References $page, $res, createPage(), and Revision\fetchRevision().
Definition at line 283 of file RevisionStorageTest.php.
References $page, and createPage().
Definition at line 193 of file RevisionStorageTest.php.
References $page, makeRevision(), and Revision\newFromId().
Definition at line 266 of file RevisionStorageTest.php.
References $page, and createPage().
Definition at line 229 of file RevisionStorageTest.php.
References makeRevision(), and Revision\newFromId().
Definition at line 206 of file RevisionStorageTest.php.
References makeRevision(), and Revision\newFromId().
Definition at line 239 of file RevisionStorageTest.php.
References $page, createPage(), and Revision\newFromId().
Definition at line 123 of file RevisionStorageTest.php.
References $dbr, $page, $res, assertRevEquals(), createPage(), and Revision\newFromArchiveRow().
Definition at line 144 of file RevisionStorageTest.php.
References assertRevEquals(), makeRevision(), and Revision\newFromId().
Definition at line 103 of file RevisionStorageTest.php.
References $dbr, $res, assertRevEquals(), makeRevision(), and Revision\newFromRow().
Definition at line 300 of file RevisionStorageTest.php.
References $page, createPage(), false, Revision\newNullRevision(), and wfGetDB().
Definition at line 217 of file RevisionStorageTest.php.
References MediaWikiTestCase\hideDeprecated(), makeRevision(), and Revision\newFromId().
Definition at line 180 of file RevisionStorageTest.php.
References Revision\selectFields().
RevisionStorageTest::testUserWasLastToEdit | ( | $ | sinceIdx, |
$ | expectedLast | ||
) |
dataUserWasLastToEdit
Definition at line 333 of file RevisionStorageTest.php.
References $page, WikiPage\factory(), Title\newFromText(), Revision\userWasLastToEdit(), and wfGetDB().
RevisionStorageTest::$the_page |
Definition at line 14 of file RevisionStorageTest.php.