MediaWiki  master
LBFactoryTest Class Reference

Database \Wikimedia\Rdbms\LBFactory \Wikimedia\Rdbms\LBFactorySimple \Wikimedia\Rdbms\LBFactoryMulti. More...

Inheritance diagram for LBFactoryTest:
Collaboration diagram for LBFactoryTest:

Public Member Functions

 getLBFactoryClassProvider ()
 
 testChronologyProtector ()
 \Wikimedia\Rdbms\ChronologyProtector More...
 
 testCPPosIndexCookieValues ()
 \Wikimedia\Rdbms\LBFactory::makeCookieValueFromCPIndex() \Wikimedia\Rdbms\LBFactory::getCPInfoFromCookieValue() More...
 
 testGetLBFactoryClass ( $expected, $deprecated)
 MWLBFactory::getLBFactoryClass() getLBFactoryClassProvider. More...
 
 testInvalidSelectDB ()
 \Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB More...
 
 testInvalidSelectDBIndependant ()
 \Wikimedia\Rdbms\DatabaseSqlite::selectDB \Wikimedia\Rdbms\DatabasePostgres::selectDB \Wikimedia\Rdbms\DBConnectionError More...
 
 testInvalidSelectDBIndependant2 ()
 \Wikimedia\Rdbms\DatabaseSqlite::selectDB \Wikimedia\Rdbms\DatabasePostgres::selectDB \Wikimedia\Rdbms\DBConnectionError More...
 
 testLBFactoryMultiConns ()
 
 testLBFactoryMultiRoundCallbacks ()
 
 testLBFactorySimpleServer ()
 \Wikimedia\Rdbms\LBFactory::getLocalDomainID() \Wikimedia\Rdbms\LBFactory::resolveDomainID() More...
 
 testLBFactorySimpleServers ()
 
 testNiceDomains ()
 \Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB More...
 
 testRedefineLocalDomain ()
 \Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\LoadBalancer::redefineLocalDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB More...
 
 testTrickyDomain ()
 \Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB More...
 

Private Member Functions

 newLBFactoryMulti (array $baseOverride=[], array $serverOverride=[])
 
 newLBFactoryMultiLBs ()
 
 quoteTable (IDatabase $db, $table)
 

Detailed Description

Database \Wikimedia\Rdbms\LBFactory \Wikimedia\Rdbms\LBFactorySimple \Wikimedia\Rdbms\LBFactoryMulti.

Definition at line 42 of file LBFactoryTest.php.

Member Function Documentation

◆ getLBFactoryClassProvider()

LBFactoryTest::getLBFactoryClassProvider ( )

Definition at line 68 of file LBFactoryTest.php.

References class.

◆ newLBFactoryMulti()

LBFactoryTest::newLBFactoryMulti ( array  $baseOverride = [],
array  $serverOverride = [] 
)
private

◆ newLBFactoryMultiLBs()

LBFactoryTest::newLBFactoryMultiLBs ( )
private

◆ quoteTable()

LBFactoryTest::quoteTable ( IDatabase  $db,
  $table 
)
private

◆ testChronologyProtector()

LBFactoryTest::testChronologyProtector ( )

\Wikimedia\Rdbms\ChronologyProtector

Definition at line 285 of file LBFactoryTest.php.

References class, null, and use.

◆ testCPPosIndexCookieValues()

LBFactoryTest::testCPPosIndexCookieValues ( )

\Wikimedia\Rdbms\LBFactory::makeCookieValueFromCPIndex() \Wikimedia\Rdbms\LBFactory::getCPInfoFromCookieValue()

Definition at line 754 of file LBFactoryTest.php.

References $time, newLBFactoryMulti(), and null.

◆ testGetLBFactoryClass()

LBFactoryTest::testGetLBFactoryClass (   $expected,
  $deprecated 
)

MWLBFactory::getLBFactoryClass() getLBFactoryClassProvider.

Definition at line 48 of file LBFactoryTest.php.

References class, and MWLBFactory\getLBFactoryClass().

◆ testInvalidSelectDB()

LBFactoryTest::testInvalidSelectDB ( )

\Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB

Definition at line 617 of file LBFactoryTest.php.

References $e, DB_MASTER, newLBFactoryMulti(), null, and wfGetDB().

◆ testInvalidSelectDBIndependant()

LBFactoryTest::testInvalidSelectDBIndependant ( )

\Wikimedia\Rdbms\DatabaseSqlite::selectDB \Wikimedia\Rdbms\DatabasePostgres::selectDB \Wikimedia\Rdbms\DBConnectionError

Definition at line 648 of file LBFactoryTest.php.

References DB_MASTER, newLBFactoryMulti(), null, and wfGetDB().

◆ testInvalidSelectDBIndependant2()

LBFactoryTest::testInvalidSelectDBIndependant2 ( )

\Wikimedia\Rdbms\DatabaseSqlite::selectDB \Wikimedia\Rdbms\DatabasePostgres::selectDB \Wikimedia\Rdbms\DBConnectionError

Definition at line 671 of file LBFactoryTest.php.

References DB_MASTER, newLBFactoryMulti(), null, and wfGetDB().

◆ testLBFactoryMultiConns()

LBFactoryTest::testLBFactoryMultiConns ( )

Definition at line 166 of file LBFactoryTest.php.

References $dbr, DB_MASTER, DB_REPLICA, and newLBFactoryMultiLBs().

◆ testLBFactoryMultiRoundCallbacks()

LBFactoryTest::testLBFactoryMultiRoundCallbacks ( )

Definition at line 179 of file LBFactoryTest.php.

References DB_MASTER, newLBFactoryMultiLBs(), and use.

◆ testLBFactorySimpleServer()

LBFactoryTest::testLBFactorySimpleServer ( )

\Wikimedia\Rdbms\LBFactory::getLocalDomainID() \Wikimedia\Rdbms\LBFactory::resolveDomainID()

Definition at line 84 of file LBFactoryTest.php.

References $dbr, $wgDBname, $wgDBpassword, $wgDBserver, $wgDBtype, $wgDBuser, $wgSQLiteDataDir, DB_MASTER, DB_REPLICA, and DBO_TRX.

◆ testLBFactorySimpleServers()

LBFactoryTest::testLBFactorySimpleServers ( )

◆ testNiceDomains()

LBFactoryTest::testNiceDomains ( )

\Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB

Definition at line 457 of file LBFactoryTest.php.

References $wgDBname, DB_MASTER, newLBFactoryMulti(), quoteTable(), wfGetDB(), and wfWikiID().

◆ testRedefineLocalDomain()

LBFactoryTest::testRedefineLocalDomain ( )

\Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\LoadBalancer::redefineLocalDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB

Definition at line 698 of file LBFactoryTest.php.

References $wgDBname, DB_MASTER, newLBFactoryMulti(), null, use, wfGetDB(), and wfWikiID().

◆ testTrickyDomain()

LBFactoryTest::testTrickyDomain ( )

\Wikimedia\Rdbms\LoadBalancer::getConnection \Wikimedia\Rdbms\DatabaseMysqlBase::doSelectDomain \Wikimedia\Rdbms\DatabaseMysqlBase::selectDB \Wikimedia\Rdbms\DatabaseMssql::selectDB DatabaseOracle::selectDB

Definition at line 544 of file LBFactoryTest.php.

References $wgDBname, DB_MASTER, newLBFactoryMulti(), null, quoteTable(), and wfGetDB().


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