MediaWiki  master
RevisionPreMcrDbTest Class Reference

Tests Revision against the pre-MCR DB schema. More...

Inheritance diagram for RevisionPreMcrDbTest:
Collaboration diagram for RevisionPreMcrDbTest:

Public Member Functions

 provideGetRevisionText ()
 
 provideGetTextId ()
 
- Public Member Functions inherited from RevisionDbTestBase
 __construct ( $name=null, array $data=[], $dataName='')
 
 provideGetContent ()
 
 provideGetContentFormat ()
 
 provideGetContentHandler ()
 
 provideGetContentModel ()
 
 provideGetRevisionText ()
 
 provideGetSha1 ()
 
 provideGetSize ()
 
 provideGetTextId ()
 
 provideInsertOn_exceptionOnIncomplete ()
 
 provideNewFromArchiveRow ()
 
 provideUserCan ()
 
 provideUserCanBitfield ()
 
 testGetComment_notDeleted ()
 Revision::getComment. More...
 
 testGetContent ( $text, $title, $model, $format, $audience, $expectedSerialization)
 provideGetContent Revision::getContent More...
 
 testGetContent_failure ()
 Revision::getContent. More...
 
 testGetContentClone ()
 Tests whether $rev->getContent() returns a clone when needed. More...
 
 testGetContentFormat ( $text, $title, $model, $format, $expectedFormat)
 provideGetContentFormat Revision::getContentFormat More...
 
 testGetContentHandler ( $text, $title, $model, $format, $expectedClass)
 provideGetContentHandler Revision::getContentHandler More...
 
 testGetContentModel ( $text, $title, $model, $format, $expectedModel)
 provideGetContentModel Revision::getContentModel More...
 
 testGetContentUncloned ()
 Tests whether $rev->getContent() returns the same object repeatedly if appropriate. More...
 
 testGetNext ()
 Revision::getNext. More...
 
 testGetPage ()
 Revision::getPage. More...
 
 testGetParentLengths_multipleRevIds ()
 Revision::getParentLengths. More...
 
 testGetParentLengths_noRevIds ()
 Revision::getParentLengths. More...
 
 testGetParentLengths_oneRevId ()
 Revision::getParentLengths. More...
 
 testGetPrevious ()
 Revision::getPrevious. More...
 
 testGetRecentChange ()
 Revision::getRecentChange. More...
 
 testGetRevisionText (array $queryInfoOptions, array $queryInfoExtra=[])
 provideGetRevisionText Revision::getRevisionText More...
 
 testGetSha1 ( $text, $model, $expected_hash)
 Revision::getSha1 provideGetSha1. More...
 
 testGetSize ( $text, $model, $expected_size)
 Revision::getSize provideGetSize. More...
 
 testGetTextId ( $spec, $expected)
 provideGetTextId Revision::getTextId() More...
 
 testGetTimestamp ()
 Revision::getTimestamp. More...
 
 testGetTitle_fromExistingRevision ()
 Revision::getTitle. More...
 
 testGetTitle_fromRevisionWhichWillLoadTheTitle ()
 Revision::getTitle. More...
 
 testGetUserAndText ()
 Revision::getUser Revision::getUserText. More...
 
 testGetVisibility_nothingDeleted ()
 Revision::getVisibility. More...
 
 testInsertOn ()
 Revision::insertOn. More...
 
 testInsertOn_exceptionOnIncomplete ( $array, $expException, $expMessage)
 provideInsertOn_exceptionOnIncomplete Revision::insertOn More...
 
 testInsertOn_success ()
 Revision::insertOn. More...
 
 testIsCurrent ()
 Revision::isCurrent. More...
 
 testIsDeleted_nothingDeleted ()
 Revision::isDeleted. More...
 
 testIsMinor_false ()
 Revision::isMinor. More...
 
 testIsMinor_true ()
 Revision::isMinor. More...
 
 testIsUnpatrolled_returnsRecentChangesId ()
 Revision::isUnpatrolled. More...
 
 testIsUnpatrolled_returnsZeroIfPatrolled ()
 Revision::isUnpatrolled. More...
 
 testLoadFromId ()
 Revision::loadFromId. More...
 
 testLoadFromPageId ()
 Revision::loadFromPageId. More...
 
 testLoadFromPageIdWithLatestRevId ()
 Revision::loadFromPageId. More...
 
 testLoadFromPageIdWithNotLatestRevId ()
 Revision::loadFromPageId. More...
 
 testLoadFromTimestamp ()
 Revision::loadFromTimestamp() More...
 
 testLoadFromTitle ()
 Revision::loadFromTitle. More...
 
 testLoadFromTitleWithLatestRevId ()
 Revision::loadFromTitle. More...
 
 testLoadFromTitleWithNotLatestRevId ()
 Revision::loadFromTitle. More...
 
 testNewFromArchiveRow ( $selectModifier)
 provideNewFromArchiveRow Revision::newFromArchiveRow More...
 
 testNewFromArchiveRowOverrides ()
 Revision::newFromArchiveRow. More...
 
 testNewFromId ()
 Revision::newFromId. More...
 
 testNewFromPageId ()
 Revision::newFromPageId. More...
 
 testNewFromPageIdWithLatestId ()
 Revision::newFromPageId. More...
 
 testNewFromPageIdWithNotLatestId ()
 Revision::newFromPageId. More...
 
 testNewFromRow ()
 Revision::newFromRow. More...
 
 testNewFromTitle_withBadId ()
 Revision::newFromTitle. More...
 
 testNewFromTitle_withId ()
 Revision::newFromTitle. More...
 
 testNewFromTitle_withoutId ()
 Revision::newFromTitle. More...
 
 testNewKnownCurrent ()
 Revision::newKnownCurrent. More...
 
 testNewKnownCurrent_returnsFalseWhenTitleDoesntExist ()
 
 testNewKnownCurrent_withPageId ()
 
 testNewNullRevision ()
 Revision::newNullRevision. More...
 
 testNewNullRevision_badPage ()
 Revision::newNullRevision. More...
 
 testSimpleContentGetters ()
 This is a simple blanket test for all simple content getters and is methods to provide some coverage before the split of Revision into multiple classes for MCR work. More...
 
 testTitleGetNextRevisionID ()
 Title::getNextRevisionID Title::getRelativeRevisionID MediaWiki\Revision\RevisionStore::getNextRevision MediaWiki\Revision\RevisionStore::getRelativeRevision. More...
 
 testTitleGetNextRevisionID_invalid ()
 Title::getNextRevisionID Title::getRelativeRevisionID. More...
 
 testTitleGetPreviousRevisionID ()
 Title::getPreviousRevisionID Title::getRelativeRevisionID MediaWiki\Revision\RevisionStore::getPreviousRevision MediaWiki\Revision\RevisionStore::getRelativeRevision. More...
 
 testTitleGetPreviousRevisionID_invalid ()
 Title::getPreviousRevisionID Title::getRelativeRevisionID. More...
 
 testUserCan ( $bitField, $field, $userGroups, $expected)
 provideUserCan Revision::userCan More...
 
 testUserCanBitfield ( $bitField, $field, $userGroups, $title, $expected)
 provideUserCanBitfield Revision::userCanBitfield More...
 
 testUserWasLastToEdit ( $sinceIdx, $expectedLast)
 Revision::userWasLastToEdit provideUserWasLastToEdit. More...
 

Protected Member Functions

 getContentHandlerUseDB ()
 
- Protected Member Functions inherited from RevisionDbTestBase
 addCoreDBData ()
 
 getContentHandlerUseDB ()
 
 getMcrMigrationStage ()
 
 getMcrTablesToReset ()
 
 getMockTitle ()
 
 setUp ()
 

Additional Inherited Members

- Static Public Member Functions inherited from RevisionDbTestBase
static provideUserWasLastToEdit ()
 

Detailed Description

Tests Revision against the pre-MCR DB schema.

Revision

Revision Storage ContentHandler Database medium

Definition at line 16 of file RevisionPreMcrDbTest.php.

Member Function Documentation

◆ getContentHandlerUseDB()

RevisionPreMcrDbTest::getContentHandlerUseDB ( )
protected

Definition at line 20 of file RevisionPreMcrDbTest.php.

◆ provideGetRevisionText()

RevisionPreMcrDbTest::provideGetRevisionText ( )

Definition at line 47 of file RevisionPreMcrDbTest.php.

◆ provideGetTextId()

RevisionPreMcrDbTest::provideGetTextId ( )

Definition at line 24 of file RevisionPreMcrDbTest.php.

References null, and object.


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