wiki.techinc.nl/tests/phpunit/includes/db
aude 1959b3eb5a Avoid interacting with LBFactory singleton in tests
Instead test that LBFactory::getLBFactoryClass() does the right thing.

In LBFactory::getLBFactoryClass(), the method now requires a configuration
array as a parameter, and returns the class name as a string.

LBFactory::singleton() now passes in $wgLBFactoryConf into getLBFactoryClass(),
while tests can use test configuration.

Only use of LBFactory::getLBFactoryClass() in core is in LBFactory::singleton().

No extension in gerrit uses getLBFactoryClass() and I can find no use of it
when searching places like Github and Google, so it should be safe to make
such change in LBFactory.

Bug: 59105
Change-Id: I71ae7df16bc5c214b9389125140bca5ce68d274c
2014-01-02 14:27:19 +01:00
..
DatabaseMysqlBaseTest.php Abstract out mysql_field_type() call from DatabaseBase 2013-12-15 18:40:50 +00:00
DatabaseSqliteTest.php Merge "Add DROP INDEX support to DatabaseSqlite::replaceVars method" 2013-11-05 14:18:01 +00:00
DatabaseSQLTest.php Fix scope on all /phpunit test methods 2013-10-24 10:31:32 +02:00
DatabaseTest.php Fixed spacing 2013-11-19 19:03:54 +01:00
DatabaseTestHelper.php Made DatabaseBase::getSoftwareLink() dynamic. 2013-05-14 21:18:57 -07:00
LBFactoryTest.php Avoid interacting with LBFactory singleton in tests 2014-01-02 14:27:19 +01:00
ORMRowTest.php Update code formatting 2013-04-26 14:21:20 +00:00
ORMTableTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00
TestORMRowTest.php @covers tags for more test classes 2013-10-24 20:35:04 +01:00