MediaWiki  master
MediaWiki\Tests\Revision\RevisionQueryInfoTest Class Reference

Tests RevisionStore against the post-migration MCR DB schema. More...

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

Public Member Functions

 provideArchiveQueryInfo ()
 
 provideQueryInfo ()
 
 provideSelectArchiveFields ()
 
 provideSelectFields ()
 
 provideSlotsQueryInfo ()
 
 testRevisionGetArchiveQueryInfo ( $migrationStageSettings, $expected)
 Revision::getArchiveQueryInfo provideArchiveQueryInfo. More...
 
 testRevisionGetQueryInfo ( $migrationStageSettings, $options, $expected)
 Revision::getQueryInfo provideQueryInfo. More...
 
 testRevisionPageJoinCond ()
 Revision::pageJoinCond. More...
 
 testRevisionSelectArchiveFields ( $migrationStageSettings, $expected)
 provideSelectArchiveFields Revision::selectArchiveFields More...
 
 testRevisionSelectFields ( $migrationStageSettings, $expected)
 provideSelectFields Revision::selectFields More...
 
 testRevisionSelectPageFields ()
 Revision::selectPageFields. More...
 
 testRevisionSelectTextFields ()
 Revision::selectTextFields. More...
 
 testRevisionSelectUserFields ()
 Revision::selectUserFields. More...
 
 testRevisionStoreGetArchiveQueryInfo ( $migrationStageSettings, $expected)
 provideArchiveQueryInfo \MediaWiki\Revision\RevisionStore::getArchiveQueryInfo More...
 
 testRevisionStoreGetQueryInfo ( $migrationStageSettings, $options, $expected)
 provideQueryInfo \MediaWiki\Revision\RevisionStore::getQueryInfo More...
 
 testRevisionStoreGetSlotsQueryInfo ( $migrationStageSettings, $options, $expected)
 provideSlotsQueryInfo \MediaWiki\Revision\RevisionStore::getSlotsQueryInfo More...
 
 testRevisionUserJoinCond ()
 Revision::userJoinCond. More...
 

Protected Member Functions

 getArchiveQueryFields ( $returnTextFields=true)
 
 getContentHandlerQueryFields ( $prefix)
 
 getNewActorJoins ( $prefix)
 
 getNewActorQueryFields ( $prefix, $tmp=false)
 
 getNewCommentQueryFields ( $prefix)
 
 getOldActorQueryFields ( $prefix)
 
 getPageQueryFields ()
 
 getRevisionQueryFields ( $returnTextIdField=true)
 
 getTextQueryFields ()
 
 getUserQueryFields ()
 

Private Member Functions

 assertArrayEqualsIgnoringIntKeyOrder (array $expected, array $actual, $message=null)
 Assert that the two arrays passed are equal, ignoring the order of the values that integer keys. More...
 
 assertQueryInfoEquals ( $expected, $queryInfo)
 

Detailed Description

Tests RevisionStore against the post-migration MCR DB schema.

RevisionStore Storage Database

Definition at line 17 of file RevisionQueryInfoTest.php.

Member Function Documentation

◆ assertArrayEqualsIgnoringIntKeyOrder()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::assertArrayEqualsIgnoringIntKeyOrder ( array  $expected,
array  $actual,
  $message = null 
)
private

Assert that the two arrays passed are equal, ignoring the order of the values that integer keys.

Note: Failures of this assertion can be slightly confusing as the arrays are actually split into a string key array and an int key array before assertions occur.

Parameters
array$expected
array$actual

Definition at line 1136 of file RevisionQueryInfoTest.php.

References $value, and as.

Referenced by MediaWiki\Tests\Revision\RevisionQueryInfoTest\assertQueryInfoEquals(), MediaWiki\Tests\Revision\RevisionQueryInfoTest\testRevisionSelectArchiveFields(), and MediaWiki\Tests\Revision\RevisionQueryInfoTest\testRevisionSelectFields().

◆ assertQueryInfoEquals()

◆ getArchiveQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getArchiveQueryFields (   $returnTextFields = true)
protected

◆ getContentHandlerQueryFields()

◆ getNewActorJoins()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getNewActorJoins (   $prefix)
protected

◆ getNewActorQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getNewActorQueryFields (   $prefix,
  $tmp = false 
)
protected

◆ getNewCommentQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getNewCommentQueryFields (   $prefix)
protected

◆ getOldActorQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getOldActorQueryFields (   $prefix)
protected

◆ getPageQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getPageQueryFields ( )
protected

◆ getRevisionQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getRevisionQueryFields (   $returnTextIdField = true)
protected

◆ getTextQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getTextQueryFields ( )
protected

◆ getUserQueryFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::getUserQueryFields ( )
protected

◆ provideArchiveQueryInfo()

◆ provideQueryInfo()

◆ provideSelectArchiveFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::provideSelectArchiveFields ( )

◆ provideSelectFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::provideSelectFields ( )

◆ provideSlotsQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::provideSlotsQueryInfo ( )

◆ testRevisionGetArchiveQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionGetArchiveQueryInfo (   $migrationStageSettings,
  $expected 
)

◆ testRevisionGetQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionGetQueryInfo (   $migrationStageSettings,
  $options,
  $expected 
)

◆ testRevisionPageJoinCond()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionPageJoinCond ( )

◆ testRevisionSelectArchiveFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionSelectArchiveFields (   $migrationStageSettings,
  $expected 
)

◆ testRevisionSelectFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionSelectFields (   $migrationStageSettings,
  $expected 
)

◆ testRevisionSelectPageFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionSelectPageFields ( )

◆ testRevisionSelectTextFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionSelectTextFields ( )

◆ testRevisionSelectUserFields()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionSelectUserFields ( )

◆ testRevisionStoreGetArchiveQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetArchiveQueryInfo (   $migrationStageSettings,
  $expected 
)

◆ testRevisionStoreGetQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetQueryInfo (   $migrationStageSettings,
  $options,
  $expected 
)

◆ testRevisionStoreGetSlotsQueryInfo()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionStoreGetSlotsQueryInfo (   $migrationStageSettings,
  $options,
  $expected 
)

◆ testRevisionUserJoinCond()

MediaWiki\Tests\Revision\RevisionQueryInfoTest::testRevisionUserJoinCond ( )

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