MediaWiki  REL1_22
RevisionStorageTest Class Reference

Test class for Revision storage. More...

Inheritance diagram for RevisionStorageTest:
Collaboration diagram for RevisionStorageTest:

List of all members.

Public Member Functions

 __construct ($name=null, array $data=array(), $dataName= '')
 tearDown ()
 testConstructFromRow ()
 Revision::__construct
 testFetchRevision ()
 Revision::fetchRevision
 testGetContent ()
 Revision::getContent
 testGetContent_failure ()
 Revision::getContent
 testGetContentFormat ()
 Revision::getContentFormat
 testGetContentModel ()
 Revision::getContentModel
 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)
 provideUserWasLastToEdit

Static Public Member Functions

static provideUserWasLastToEdit ()

Public Attributes

WikiPage $the_page
 $the_page

Protected Member Functions

 assertRevEquals (Revision $orig, Revision $rev=null)
 createPage ($page, $text, $model=null)
 makeRevision ($props=null)
 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.

Detailed Description

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.


Constructor & Destructor Documentation

RevisionStorageTest::__construct ( name = null,
array data = array(),
dataName = '' 
)

Reimplemented from MediaWikiTestCase.

Definition at line 19 of file RevisionStorageTest.php.

References $name, and array().


Member Function Documentation

RevisionStorageTest::createPage ( page,
text,
model = null 
) [protected]

Definition at line 437 of file RevisionStorageTest.php.

References array(), edited, in, and user.

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.

RevisionStorageTest::testUserWasLastToEdit ( sinceIdx,
expectedLast 
)

provideUserWasLastToEdit

Definition at line 457 of file RevisionStorageTest.php.


Member Data Documentation

WikiPage RevisionStorageTest::$the_page

$the_page

Definition at line 17 of file RevisionStorageTest.php.


The documentation for this class was generated from the following file: