MediaWiki  master
MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest Class Reference

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

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

Public Member Functions

 provideInsertRevisionOn_failures ()
 
 provideNewMutableRevisionFromArray ()
 
- 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)
 
 getSlotRevisionConditions ( $revId)
 Conditions to use together with getSlotsQueryInfo() when selecting slot rows for a given revision. More...
 
 revisionToRow (Revision $rev, $options=[ 'page', 'user', 'comment'])
 
- 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 pre-MCR DB schema.

\MediaWiki\Revision\RevisionStore

RevisionStore Storage Database medium

Definition at line 20 of file PreMcrRevisionStoreDbTest.php.

Member Function Documentation

◆ assertRevisionExistsInDatabase()

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

Definition at line 34 of file PreMcrRevisionStoreDbTest.php.

References Revision\RevisionRecord\getId().

◆ getSlotRevisionConditions()

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

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

Returns
array

Definition at line 98 of file PreMcrRevisionStoreDbTest.php.

◆ provideInsertRevisionOn_failures()

MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::provideInsertRevisionOn_failures ( )

◆ provideNewMutableRevisionFromArray()

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

Definition at line 67 of file PreMcrRevisionStoreDbTest.php.

References as.

◆ revisionToRow()

MediaWiki\Tests\Revision\PreMcrRevisionStoreDbTest::revisionToRow ( Revision  $rev,
  $options = [ 'page',
'user ,
'comment']   
)
protected

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