MediaWiki  master
MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest Class Reference

Tests RevisionStore against the intermediate MCR DB schema for use during schema migration. More...

Inheritance diagram for MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest:
Collaboration diagram for MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest:

Public Member Functions

 provideInsertRevisionOn_successes ()
 
 provideNewMutableRevisionFromArray ()
 
 provideNewNullRevision ()
 
 testGetQueryInfo_NoSlotDataJoin ()
 
- Public Member Functions inherited from MediaWiki\Tests\Revision\RevisionStoreDbTestBase
 provideDomainCheck ()
 
 provideInsertRevisionOn_failures ()
 
 provideInsertRevisionOn_successes ()
 
 provideNewMutableRevisionFromArray ()
 
 provideNewNullRevision ()
 
 provideNonHistoryRevision ()
 
 setUp ()
 
 testCountRevisionsByPageId ()
 \MediaWiki\Revision\RevisionStore::countRevisionsByPageId More...
 
 testCountRevisionsByTitle ()
 \MediaWiki\Revision\RevisionStore::countRevisionsByTitle More...
 
 testDomainCheck ( $wikiId, $dbName, $dbPrefix)
 provideDomainCheck \MediaWiki\Revision\RevisionStore::checkDatabaseDomain More...
 
 testGetKnownCurrentRevision ()
 \MediaWiki\Revision\RevisionStore::getKnownCurrentRevision More...
 
 testGetKnownCurrentRevision_revDelete ()
 \MediaWiki\Revision\RevisionStore::getKnownCurrentRevision More...
 
 testGetKnownCurrentRevision_userNameChange ()
 \MediaWiki\Revision\RevisionStore::getKnownCurrentRevision More...
 
 testGetNextRevision ()
 \MediaWiki\Revision\RevisionStore::getNextRevision More...
 
 testGetNextRevision_bad (RevisionRecord $rev)
 provideNonHistoryRevision \MediaWiki\Revision\RevisionStore::getNextRevision More...
 
 testGetParentLengths ()
 \MediaWiki\Revision\RevisionStore::listRevisionSizes More...
 
 testGetPreviousRevision ()
 \MediaWiki\Revision\RevisionStore::getPreviousRevision More...
 
 testGetPreviousRevision_bad (RevisionRecord $rev)
 provideNonHistoryRevision \MediaWiki\Revision\RevisionStore::getPreviousRevision More...
 
 testGetRcIdIfUnpatrolled_returnsRecentChangesId ()
 \MediaWiki\Revision\RevisionStore::getRcIdIfUnpatrolled More...
 
 testGetRcIdIfUnpatrolled_returnsZeroIfPatrolled ()
 \MediaWiki\Revision\RevisionStore::getRcIdIfUnpatrolled More...
 
 testGetRecentChange ()
 \MediaWiki\Revision\RevisionStore::getRecentChange More...
 
 testGetRevisionById ()
 \MediaWiki\Revision\RevisionStore::getRevisionById More...
 
 testGetRevisionByPageId ()
 \MediaWiki\Revision\RevisionStore::getRevisionByPageId More...
 
 testGetRevisionByTimestamp ()
 \MediaWiki\Revision\RevisionStore::getRevisionByTimestamp More...
 
 testGetRevisionByTitle ()
 \MediaWiki\Revision\RevisionStore::getRevisionByTitle More...
 
 testGetTimestampFromId_found ()
 \MediaWiki\Revision\RevisionStore::getTimestampFromId More...
 
 testGetTimestampFromId_notFound ()
 \MediaWiki\Revision\RevisionStore::getTimestampFromId More...
 
 testInsertRevisionOn_archive ()
 \MediaWiki\Revision\RevisionStore::insertRevisionOn More...
 
 testInsertRevisionOn_blobAddressExists ()
 \MediaWiki\Revision\RevisionStore::insertRevisionOn More...
 
 testInsertRevisionOn_failures (array $revDetails=[], Exception $exception)
 provideInsertRevisionOn_failures \MediaWiki\Revision\RevisionStore::insertRevisionOn More...
 
 testInsertRevisionOn_successes (array $revDetails=[])
 provideInsertRevisionOn_successes \MediaWiki\Revision\RevisionStore::insertRevisionOn \MediaWiki\Revision\RevisionStore::insertSlotRowOn \MediaWiki\Revision\RevisionStore::insertContentRowOn More...
 
 testLoadRevisionFromId ()
 \MediaWiki\Revision\RevisionStore::loadRevisionFromId More...
 
 testLoadRevisionFromPageId ()
 \MediaWiki\Revision\RevisionStore::loadRevisionFromPageId More...
 
 testLoadRevisionFromTimestamp ()
 \MediaWiki\Revision\RevisionStore::loadRevisionFromTimestamp More...
 
 testLoadRevisionFromTitle ()
 \MediaWiki\Revision\RevisionStore::loadRevisionFromTitle More...
 
 testNewMutableRevisionFromArray (array $array)
 provideNewMutableRevisionFromArray \MediaWiki\Revision\RevisionStore::newMutableRevisionFromArray More...
 
 testNewMutableRevisionFromArray_legacyEncoding (array $array)
 provideNewMutableRevisionFromArray \MediaWiki\Revision\RevisionStore::newMutableRevisionFromArray More...
 
 testNewNullRevision (Title $title, $revDetails, $comment, $minor=false)
 provideNewNullRevision \MediaWiki\Revision\RevisionStore::newNullRevision \MediaWiki\Revision\RevisionStore::findSlotContentId More...
 
 testNewNullRevision_nonExistingTitle ()
 \MediaWiki\Revision\RevisionStore::newNullRevision More...
 
 testNewRevisionFromArchiveRow_getArchiveQueryInfo ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromArchiveRow \MediaWiki\Revision\RevisionStore::getArchiveQueryInfo More...
 
 testNewRevisionFromArchiveRow_legacyEncoding ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromArchiveRow More...
 
 testNewRevisionFromArchiveRow_no_user ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromArchiveRow More...
 
 testNewRevisionFromRow_anonEdit ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots More...
 
 testNewRevisionFromRow_anonEdit_legacyEncoding ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots More...
 
 testNewRevisionFromRow_getQueryInfo ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots \MediaWiki\Revision\RevisionStore::getQueryInfo More...
 
 testNewRevisionFromRow_no_user ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots More...
 
 testNewRevisionFromRow_revDelete ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow More...
 
 testNewRevisionFromRow_userEdit ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots More...
 
 testNewRevisionFromRow_userNameChange ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRow More...
 
 testNewRevisionFromRowAndSlot_getQueryInfo ()
 \MediaWiki\Revision\RevisionStore::newRevisionFromRowAndSlots \MediaWiki\Revision\RevisionStore::getQueryInfo More...
 
 testUserWasLastToEdit_false ()
 \MediaWiki\Revision\RevisionStore::userWasLastToEdit More...
 
 testUserWasLastToEdit_true ()
 \MediaWiki\Revision\RevisionStore::userWasLastToEdit More...
 

Protected Member Functions

 assertRevisionExistsInDatabase (RevisionRecord $rev)
 
 assertSameSlotContent (SlotRecord $a, SlotRecord $b)
 
 getSlotRevisionConditions ( $revId)
 Conditions to use together with getSlotsQueryInfo() when selecting slot rows for a given revision. More...
 
- Protected Member Functions inherited from MediaWiki\Tests\Revision\RevisionStoreDbTestBase
 addCoreDBData ()
 
 assertLinkTargetsEqual (LinkTarget $l1, LinkTarget $l2)
 
 assertRevisionCompleteness (RevisionRecord $r)
 
 assertRevisionExistsInDatabase (RevisionRecord $rev)
 
 assertRevisionRecordMatchesRevision (Revision $rev, RevisionRecord $record)
 
 assertRevisionRecordsEqual (RevisionRecord $r1, RevisionRecord $r2)
 
 assertSameSlotContent (SlotRecord $a, SlotRecord $b)
 
 assertSlotCompleteness (RevisionRecord $r, SlotRecord $slot)
 
 assertSlotRecordsEqual (SlotRecord $s1, SlotRecord $s2)
 
 getContentHandlerUseDB ()
 
 getMcrMigrationStage ()
 
 getMcrTablesToReset ()
 
 getRandomCommentStoreComment ()
 
 getSlotRevisionConditions ( $revId)
 Conditions to use together with getSlotsQueryInfo() when selecting slot rows for a given revision. More...
 
 getTestPage ()
 
 getTestPageTitle ()
 
 revisionToRow (Revision $rev, $options=[ 'page', 'user', 'comment'])
 

Detailed Description

Tests RevisionStore against the intermediate MCR DB schema for use during schema migration.

\MediaWiki\Revision\RevisionStore

RevisionStore Storage Database medium

Definition at line 23 of file McrReadNewRevisionStoreDbTest.php.

Member Function Documentation

◆ assertRevisionExistsInDatabase()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::assertRevisionExistsInDatabase ( RevisionRecord  $rev)
protected

◆ assertSameSlotContent()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::assertSameSlotContent ( SlotRecord  $a,
SlotRecord  $b 
)
protected
Parameters
SlotRecord$a
SlotRecord$b

Definition at line 69 of file McrReadNewRevisionStoreDbTest.php.

References Revision\SlotRecord\getContentId().

◆ getSlotRevisionConditions()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::getSlotRevisionConditions (   $revId)
protected

Conditions to use together with getSlotsQueryInfo() when selecting slot rows for a given revision.

Returns
array

Definition at line 153 of file McrReadNewRevisionStoreDbTest.php.

◆ provideInsertRevisionOn_successes()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::provideInsertRevisionOn_successes ( )

◆ provideNewMutableRevisionFromArray()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::provideNewMutableRevisionFromArray ( )

Definition at line 121 of file McrReadNewRevisionStoreDbTest.php.

References as.

◆ provideNewNullRevision()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::provideNewNullRevision ( )

◆ testGetQueryInfo_NoSlotDataJoin()

MediaWiki\Tests\Revision\McrReadNewRevisionStoreDbTest::testGetQueryInfo_NoSlotDataJoin ( )

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