MediaWiki  REL1_24
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= '')
 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
 testSelectFields ()
 Revision::selectFields
 testUserWasLastToEdit ($sinceIdx, $expectedLast)
 provideUserWasLastToEdit

Static Public Member Functions

static provideUserWasLastToEdit ()

Protected Member Functions

 assertRevEquals (Revision $orig, Revision $rev=null)
 createPage ($page, $text, $model=null)
 makeRevision ($props=null)
 setUp ()
 tearDown ()

Private Attributes

WikiPage $the_page
 $the_page

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 18 of file RevisionStorageTest.php.

References $name, and array().


Member Function Documentation

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

Definition at line 462 of file RevisionStorageTest.php.

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

RevisionStorageTest::setUp ( ) [protected]

Reimplemented from MediaWikiTestCase.

Reimplemented in RevisionTestContentHandlerUseDB.

Definition at line 39 of file RevisionStorageTest.php.

References $wgContLang, cache, createPage(), MWNamespace\getCanonicalNamespaces(), and global.

Reimplemented from MediaWikiTestCase.

Definition at line 61 of file RevisionStorageTest.php.

References $wgContLang, cache, MWNamespace\getCanonicalNamespaces(), and global.

RevisionStorageTest::testUserWasLastToEdit ( sinceIdx,
expectedLast 
)

provideUserWasLastToEdit

Definition at line 482 of file RevisionStorageTest.php.


Member Data Documentation

WikiPage RevisionStorageTest::$the_page [private]

$the_page

Definition at line 16 of file RevisionStorageTest.php.


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