diff options
Diffstat (limited to 'tests/phpunit/includes/db/LBFactoryTest.php')
-rw-r--r-- | tests/phpunit/includes/db/LBFactoryTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/db/LBFactoryTest.php b/tests/phpunit/includes/db/LBFactoryTest.php index 1a65f7187c2f..f71a92a9f3fb 100644 --- a/tests/phpunit/includes/db/LBFactoryTest.php +++ b/tests/phpunit/includes/db/LBFactoryTest.php @@ -395,7 +395,7 @@ class LBFactoryTest extends MediaWikiIntegrationTestCase { public function testNiceDomains() { global $wgDBname; - if ( wfGetDB( DB_PRIMARY )->databasesAreIndependent() ) { + if ( $this->getDb()->databasesAreIndependent() ) { self::markTestSkipped( "Skipping tests about selecting DBs: not applicable" ); return; } @@ -474,7 +474,7 @@ class LBFactoryTest extends MediaWikiIntegrationTestCase { public function testTrickyDomain() { global $wgDBname; - if ( wfGetDB( DB_PRIMARY )->databasesAreIndependent() ) { + if ( $this->getDb()->databasesAreIndependent() ) { self::markTestSkipped( "Skipping tests about selecting DBs: not applicable" ); return; } @@ -538,7 +538,7 @@ class LBFactoryTest extends MediaWikiIntegrationTestCase { } public function testInvalidSelectDB() { - if ( wfGetDB( DB_PRIMARY )->databasesAreIndependent() ) { + if ( $this->getDb()->databasesAreIndependent() ) { $this->markTestSkipped( "Not applicable per databasesAreIndependent()" ); } @@ -602,7 +602,7 @@ class LBFactoryTest extends MediaWikiIntegrationTestCase { public function testRedefineLocalDomain() { global $wgDBname; - if ( wfGetDB( DB_PRIMARY )->databasesAreIndependent() ) { + if ( $this->getDb()->databasesAreIndependent() ) { self::markTestSkipped( "Skipping tests about selecting DBs: not applicable" ); return; } |