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

Public Member Functions

 testAddIdentifierQuotes ( $expected, $in)
 provideDiapers Wikimedia\Rdbms\DatabaseMysqlBase::addIdentifierQuotes More...
 
 testChannelsMatch (MySQLMasterPos $pos1, MySQLMasterPos $pos2, $matches)
 provideChannelPositions Wikimedia\Rdbms\MySQLMasterPos More...
 
 testHasReached (MySQLMasterPos $lowerPos, MySQLMasterPos $higherPos, $match)
 provideComparePositions Wikimedia\Rdbms\MySQLMasterPos More...
 
 testListviews ()
 Wikimedia\Rdbms\DatabaseMysqlBase::listViews. More...
 
 testPtHeartbeat ( $lag)
 provideLagAmounts Wikimedia\Rdbms\DatabaseMysqlBase::getLag Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat More...
 

Static Public Member Functions

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

Private Member Functions

 getMockForViews ()
 

Static Private Member Functions

static createUnicodeString ( $str)
 

Detailed Description

Definition at line 107 of file DatabaseMysqlBaseTest.php.

Member Function Documentation

◆ createUnicodeString()

static DatabaseMysqlBaseTest::createUnicodeString (   $str)
staticprivate

Definition at line 170 of file DatabaseMysqlBaseTest.php.

Referenced by provideDiapers().

◆ getMockForViews()

DatabaseMysqlBaseTest::getMockForViews ( )
private

Definition at line 174 of file DatabaseMysqlBaseTest.php.

References anything.

Referenced by testListviews().

◆ provideChannelPositions()

static DatabaseMysqlBaseTest::provideChannelPositions ( )
static

Definition at line 293 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideComparePositions()

static DatabaseMysqlBaseTest::provideComparePositions ( )
static

Definition at line 231 of file DatabaseMysqlBaseTest.php.

References false, and true.

◆ provideDiapers()

static DatabaseMysqlBaseTest::provideDiapers ( )
static

Feeds testAddIdentifierQuotes.

Named per T22281 convention.

Definition at line 123 of file DatabaseMysqlBaseTest.php.

References createUnicodeString(), false, and true.

◆ provideLagAmounts()

static DatabaseMysqlBaseTest::provideLagAmounts ( )
static

Definition at line 359 of file DatabaseMysqlBaseTest.php.

◆ testAddIdentifierQuotes()

DatabaseMysqlBaseTest::testAddIdentifierQuotes (   $expected,
  $in 
)

provideDiapers Wikimedia\Rdbms\DatabaseMysqlBase::addIdentifierQuotes

Definition at line 112 of file DatabaseMysqlBaseTest.php.

◆ testChannelsMatch()

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

provideChannelPositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 288 of file DatabaseMysqlBaseTest.php.

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

◆ testHasReached()

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

provideComparePositions Wikimedia\Rdbms\MySQLMasterPos

Definition at line 215 of file DatabaseMysqlBaseTest.php.

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

◆ testListviews()

DatabaseMysqlBaseTest::testListviews ( )

Wikimedia\Rdbms\DatabaseMysqlBase::listViews.

Definition at line 194 of file DatabaseMysqlBaseTest.php.

References getMockForViews().

◆ testPtHeartbeat()

DatabaseMysqlBaseTest::testPtHeartbeat (   $lag)

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

Definition at line 323 of file DatabaseMysqlBaseTest.php.

References list.


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