MediaWiki  REL1_31
DatabaseMysqlBaseTest Class Reference
Inheritance diagram for DatabaseMysqlBaseTest:
Collaboration diagram for DatabaseMysqlBaseTest:

Public Member Functions

 provideInsertSelectCases ()
 
 testAddIdentifierQuotes ( $expected, $in)
 provideDiapers Wikimedia\Rdbms\DatabaseMysqlBase::addIdentifierQuotes More...
 
 testBinLogName ()
 Wikimedia\Rdbms\MySQLMasterPos. More...
 
 testBuildIntegerCast ()
 \Wikimedia\Rdbms\DatabaseMysqlBase::buildIntegerCast More...
 
 testChannelsMatch (MySQLMasterPos $pos1, MySQLMasterPos $pos2, $matches)
 provideChannelPositions Wikimedia\Rdbms\MySQLMasterPos More...
 
 testCommonGtidDomains (MySQLMasterPos $pos, MySQLMasterPos $ref, $gtids)
 provideCommonDomainGTIDs Wikimedia\Rdbms\MySQLMasterPos More...
 
 testHasReached (MySQLMasterPos $lowerPos, MySQLMasterPos $higherPos, $match, $hetero)
 provideComparePositions Wikimedia\Rdbms\MySQLMasterPos More...
 
 testIndexAliases ()
 
 testInsertSelectIsSafe ( $insertOpts, $selectOpts, $row, $safe)
 Wikimedia\Rdbms\DatabaseMysqlBase::isInsertSelectSafe provideInsertSelectCases. More...
 
 testListviews ()
 Wikimedia\Rdbms\DatabaseMysqlBase::listViews. More...
 
 testPtHeartbeat ( $lag)
 provideLagAmounts Wikimedia\Rdbms\DatabaseMysqlBase::getLag Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat More...
 
 testSerialize ()
 Wikimedia\Rdbms\MySQLMasterPos. More...
 
 testServerGtidTable ( $gtable, $rBLtable, $mBLtable, $rGTIDs, $mGTIDs)
 provideGtidData Wikimedia\Rdbms\MySQLMasterPos Wikimedia\Rdbms\DatabaseMysqlBase::getReplicaPos Wikimedia\Rdbms\DatabaseMysqlBase::getMasterPos More...
 
 testTableAliases ()
 Wikimedia\Rdbms\Database::setTableAliases. More...
 

Static Public Member Functions

static provideChannelPositions ()
 
static provideCommonDomainGTIDs ()
 
static provideComparePositions ()
 
static provideDiapers ()
 Feeds testAddIdentifierQuotes. More...
 
static provideGtidData ()
 
static provideLagAmounts ()
 

Private Member Functions

 getMockForViews ()
 

Static Private Member Functions

static createUnicodeString ( $str)
 

Detailed Description

Definition at line 29 of file DatabaseMysqlBaseTest.php.

Member Function Documentation

◆ createUnicodeString()

static DatabaseMysqlBaseTest::createUnicodeString (   $str)
staticprivate

Definition at line 100 of file DatabaseMysqlBaseTest.php.

Referenced by provideDiapers().

◆ getMockForViews()

DatabaseMysqlBaseTest::getMockForViews ( )
private

Definition at line 104 of file DatabaseMysqlBaseTest.php.

References anything, and class.

Referenced by testListviews().

◆ provideChannelPositions()

static DatabaseMysqlBaseTest::provideChannelPositions ( )
static

Definition at line 291 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideCommonDomainGTIDs()

static DatabaseMysqlBaseTest::provideCommonDomainGTIDs ( )
static

Definition at line 326 of file DatabaseMysqlBaseTest.php.

◆ provideComparePositions()

static DatabaseMysqlBaseTest::provideComparePositions ( )
static

Definition at line 179 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideDiapers()

static DatabaseMysqlBaseTest::provideDiapers ( )
static

Feeds testAddIdentifierQuotes.

Named per T22281 convention.

Definition at line 53 of file DatabaseMysqlBaseTest.php.

References createUnicodeString(), false, and true.

◆ provideGtidData()

static DatabaseMysqlBaseTest::provideGtidData ( )
static

Definition at line 450 of file DatabaseMysqlBaseTest.php.

References false.

◆ provideInsertSelectCases()

DatabaseMysqlBaseTest::provideInsertSelectCases ( )

Definition at line 588 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideLagAmounts()

static DatabaseMysqlBaseTest::provideLagAmounts ( )
static

Definition at line 391 of file DatabaseMysqlBaseTest.php.

◆ testAddIdentifierQuotes()

DatabaseMysqlBaseTest::testAddIdentifierQuotes (   $expected,
  $in 
)

provideDiapers Wikimedia\Rdbms\DatabaseMysqlBase::addIdentifierQuotes

Definition at line 38 of file DatabaseMysqlBaseTest.php.

References class.

◆ testBinLogName()

DatabaseMysqlBaseTest::testBinLogName ( )

Wikimedia\Rdbms\MySQLMasterPos.

Definition at line 144 of file DatabaseMysqlBaseTest.php.

◆ testBuildIntegerCast()

DatabaseMysqlBaseTest::testBuildIntegerCast ( )

\Wikimedia\Rdbms\DatabaseMysqlBase::buildIntegerCast

Definition at line 669 of file DatabaseMysqlBaseTest.php.

References $output, and class.

◆ testChannelsMatch()

DatabaseMysqlBaseTest::testChannelsMatch ( MySQLMasterPos  $pos1,
MySQLMasterPos  $pos2,
  $matches 
)

provideChannelPositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 283 of file DatabaseMysqlBaseTest.php.

References $matches, and Wikimedia\Rdbms\MySQLMasterPos\channelsMatch().

◆ testCommonGtidDomains()

DatabaseMysqlBaseTest::testCommonGtidDomains ( MySQLMasterPos  $pos,
MySQLMasterPos  $ref,
  $gtids 
)

provideCommonDomainGTIDs Wikimedia\Rdbms\MySQLMasterPos

Definition at line 322 of file DatabaseMysqlBaseTest.php.

◆ testHasReached()

DatabaseMysqlBaseTest::testHasReached ( MySQLMasterPos  $lowerPos,
MySQLMasterPos  $higherPos,
  $match,
  $hetero 
)

provideComparePositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 156 of file DatabaseMysqlBaseTest.php.

References Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), and Wikimedia\Rdbms\MySQLMasterPos\hasReached().

◆ testIndexAliases()

DatabaseMysqlBaseTest::testIndexAliases ( )

Definition at line 681 of file DatabaseMysqlBaseTest.php.

References $s, and class.

◆ testInsertSelectIsSafe()

DatabaseMysqlBaseTest::testInsertSelectIsSafe (   $insertOpts,
  $selectOpts,
  $row,
  $safe 
)

Wikimedia\Rdbms\DatabaseMysqlBase::isInsertSelectSafe provideInsertSelectCases.

Definition at line 577 of file DatabaseMysqlBaseTest.php.

References class.

◆ testListviews()

DatabaseMysqlBaseTest::testListviews ( )

Wikimedia\Rdbms\DatabaseMysqlBase::listViews.

Definition at line 124 of file DatabaseMysqlBaseTest.php.

References getMockForViews().

◆ testPtHeartbeat()

DatabaseMysqlBaseTest::testPtHeartbeat (   $lag)

provideLagAmounts Wikimedia\Rdbms\DatabaseMysqlBase::getLag Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat

Definition at line 355 of file DatabaseMysqlBaseTest.php.

References class, and list.

◆ testSerialize()

DatabaseMysqlBaseTest::testSerialize ( )

Wikimedia\Rdbms\MySQLMasterPos.

Definition at line 561 of file DatabaseMysqlBaseTest.php.

References serialize(), and unserialize().

◆ testServerGtidTable()

DatabaseMysqlBaseTest::testServerGtidTable (   $gtable,
  $rBLtable,
  $mBLtable,
  $rGTIDs,
  $mGTIDs 
)

provideGtidData Wikimedia\Rdbms\MySQLMasterPos Wikimedia\Rdbms\DatabaseMysqlBase::getReplicaPos Wikimedia\Rdbms\DatabaseMysqlBase::getMasterPos

Definition at line 410 of file DatabaseMysqlBaseTest.php.

References class, and use.

◆ testTableAliases()

DatabaseMysqlBaseTest::testTableAliases ( )

Wikimedia\Rdbms\Database::setTableAliases.

Definition at line 714 of file DatabaseMysqlBaseTest.php.

References $s, and class.


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