aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiDeleteTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiDeleteTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiDeleteTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiDeleteTest.php b/tests/phpunit/includes/api/ApiDeleteTest.php
index 497c49ea376f..e3a3364035cd 100644
--- a/tests/phpunit/includes/api/ApiDeleteTest.php
+++ b/tests/phpunit/includes/api/ApiDeleteTest.php
@@ -148,8 +148,7 @@ class ApiDeleteTest extends ApiTestCase {
$this->assertFalse( $title->exists( Title::READ_LATEST ) );
- $dbw = wfGetDB( DB_PRIMARY );
- $this->assertSame( 'custom tag', $dbw->newSelectQueryBuilder()
+ $this->assertSame( 'custom tag', $this->getDb()->newSelectQueryBuilder()
->select( 'ctd_name' )
->from( 'logging' )
->join( 'change_tag', null, 'ct_log_id = log_id' )