diff options
Diffstat (limited to 'tests/phpunit/includes/auth/AuthManagerTest.php')
-rw-r--r-- | tests/phpunit/includes/auth/AuthManagerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/includes/auth/AuthManagerTest.php b/tests/phpunit/includes/auth/AuthManagerTest.php index 5e1b36c21695..19e90cc61de5 100644 --- a/tests/phpunit/includes/auth/AuthManagerTest.php +++ b/tests/phpunit/includes/auth/AuthManagerTest.php @@ -2267,7 +2267,7 @@ class AuthManagerTest extends \MediaWikiIntegrationTestCase { } // We're testing with $wgNewUserLog = false, so assert that it worked - $dbw = wfGetDB( DB_PRIMARY ); + $dbw = $this->getDb(); $maxLogId = $dbw->newSelectQueryBuilder() ->select( 'MAX(log_id)' ) ->from( 'logging' ) @@ -2545,7 +2545,7 @@ class AuthManagerTest extends \MediaWikiIntegrationTestCase { $this->config->set( MainConfigNames::NewUserLog, true ); - $dbw = wfGetDB( DB_PRIMARY ); + $dbw = $this->getDb(); $maxLogId = $dbw->newSelectQueryBuilder() ->select( 'MAX(log_id)' ) ->from( 'logging' ) @@ -3025,7 +3025,7 @@ class AuthManagerTest extends \MediaWikiIntegrationTestCase { ], $logger->getBuffer() ); $logger->clearBuffer(); - $dbw = wfGetDB( DB_PRIMARY ); + $dbw = $this->getDb(); $maxLogId = $dbw->newSelectQueryBuilder() ->select( 'MAX(log_id)' ) ->from( 'logging' ) |