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

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

 getMockForViews ()
 

Detailed Description

Definition at line 29 of file DatabaseMysqlBaseTest.php.

Member Function Documentation

◆ getMockForViews()

DatabaseMysqlBaseTest::getMockForViews ( )
private

Definition at line 100 of file DatabaseMysqlBaseTest.php.

References and(), and anything.

Referenced by testListviews().

◆ provideChannelPositions()

static DatabaseMysqlBaseTest::provideChannelPositions ( )
static

Definition at line 288 of file DatabaseMysqlBaseTest.php.

References and(), false, and true.

◆ provideCommonDomainGTIDs()

static DatabaseMysqlBaseTest::provideCommonDomainGTIDs ( )
static

Definition at line 323 of file DatabaseMysqlBaseTest.php.

◆ provideComparePositions()

static DatabaseMysqlBaseTest::provideComparePositions ( )
static

Definition at line 176 of file DatabaseMysqlBaseTest.php.

References and(), false, and true.

◆ provideDiapers()

static DatabaseMysqlBaseTest::provideDiapers ( )
static

Feeds testAddIdentifierQuotes.

Named per T22281 convention.

Definition at line 53 of file DatabaseMysqlBaseTest.php.

References and(), false, null, and true.

◆ provideGtidData()

static DatabaseMysqlBaseTest::provideGtidData ( )
static

Definition at line 447 of file DatabaseMysqlBaseTest.php.

References false, and null.

◆ provideInsertSelectCases()

DatabaseMysqlBaseTest::provideInsertSelectCases ( )

Definition at line 585 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideLagAmounts()

static DatabaseMysqlBaseTest::provideLagAmounts ( )
static

Definition at line 388 of file DatabaseMysqlBaseTest.php.

◆ testAddIdentifierQuotes()

DatabaseMysqlBaseTest::testAddIdentifierQuotes ( $expected,
$in )

provideDiapers Wikimedia\Rdbms\DatabaseMysqlBase::addIdentifierQuotes

Definition at line 38 of file DatabaseMysqlBaseTest.php.

References and().

◆ testBinLogName()

DatabaseMysqlBaseTest::testBinLogName ( )

Wikimedia\Rdbms\MySQLMasterPos.

Definition at line 141 of file DatabaseMysqlBaseTest.php.

References and().

◆ testBuildIntegerCast()

DatabaseMysqlBaseTest::testBuildIntegerCast ( )

\Wikimedia\Rdbms\DatabaseMysqlBase::buildIntegerCast

Definition at line 666 of file DatabaseMysqlBaseTest.php.

References $output, and and().

◆ testChannelsMatch()

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

provideChannelPositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 280 of file DatabaseMysqlBaseTest.php.

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

◆ testCommonGtidDomains()

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

provideCommonDomainGTIDs Wikimedia\Rdbms\MySQLMasterPos

Definition at line 319 of file DatabaseMysqlBaseTest.php.

References and().

◆ testHasReached()

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

provideComparePositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 153 of file DatabaseMysqlBaseTest.php.

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

◆ testIndexAliases()

DatabaseMysqlBaseTest::testIndexAliases ( )

Wikimedia\Rdbms\Database::setIndexAliases.

Definition at line 678 of file DatabaseMysqlBaseTest.php.

References $s, and and().

◆ testInsertSelectIsSafe()

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

Wikimedia\Rdbms\DatabaseMysqlBase::isInsertSelectSafe provideInsertSelectCases.

Definition at line 574 of file DatabaseMysqlBaseTest.php.

References and().

◆ testListviews()

DatabaseMysqlBaseTest::testListviews ( )

Wikimedia\Rdbms\DatabaseMysqlBase::listViews.

Definition at line 121 of file DatabaseMysqlBaseTest.php.

References and(), and getMockForViews().

◆ testPtHeartbeat()

DatabaseMysqlBaseTest::testPtHeartbeat ( $lag)

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

Definition at line 352 of file DatabaseMysqlBaseTest.php.

References and(), and list.

◆ testSerialize()

DatabaseMysqlBaseTest::testSerialize ( )

Wikimedia\Rdbms\MySQLMasterPos.

Definition at line 558 of file DatabaseMysqlBaseTest.php.

References and(), 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 407 of file DatabaseMysqlBaseTest.php.

References and().

◆ testTableAliases()

DatabaseMysqlBaseTest::testTableAliases ( )

Wikimedia\Rdbms\Database::setTableAliases.

Definition at line 711 of file DatabaseMysqlBaseTest.php.

References $s, and and().


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