diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiUnblockTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiUnblockTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiUnblockTest.php b/tests/phpunit/includes/api/ApiUnblockTest.php index ffec687600a7..923d7d89aec6 100644 --- a/tests/phpunit/includes/api/ApiUnblockTest.php +++ b/tests/phpunit/includes/api/ApiUnblockTest.php @@ -122,8 +122,7 @@ class ApiUnblockTest extends ApiTestCase { $this->doUnblock( [ 'tags' => 'custom tag' ] ); - $dbw = wfGetDB( DB_PRIMARY ); - $this->assertSame( 1, (int)$dbw->newSelectQueryBuilder() + $this->assertSame( 1, (int)$this->getDb()->newSelectQueryBuilder() ->select( 'COUNT(*)' ) ->from( 'logging' ) ->join( 'change_tag', null, 'ct_log_id = log_id' ) |