aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiParseTest.php
diff options
context:
space:
mode:
authorWandji69 <collinschuwa@gmail.com>2024-06-13 17:53:25 +0100
committerWandji69 <collinschuwa@gmail.com>2024-06-23 23:47:56 +0100
commitc257e2276c8bbd57c85a516722eb047b3af2ebb9 (patch)
treebfa24e0f5f4d522744616c9c61979e00d96ac429 /tests/phpunit/includes/api/ApiParseTest.php
parented919c186be3598edf7df9f0adfe971f76f88908 (diff)
downloadmediawikicore-c257e2276c8bbd57c85a516722eb047b3af2ebb9.tar.gz
mediawikicore-c257e2276c8bbd57c85a516722eb047b3af2ebb9.zip
Replace db with getDb for Tests
Bug: T316841 Change-Id: I29e535e8ee9b5641a4546d53b98cd5060d39681d
Diffstat (limited to 'tests/phpunit/includes/api/ApiParseTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiParseTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiParseTest.php b/tests/phpunit/includes/api/ApiParseTest.php
index 99aaf45a7df0..3199d81d7602 100644
--- a/tests/phpunit/includes/api/ApiParseTest.php
+++ b/tests/phpunit/includes/api/ApiParseTest.php
@@ -309,7 +309,7 @@ class ApiParseTest extends ApiTestCase {
$this->expectApiErrorCode( 'missingcontent-pageid' );
- $this->db->newDeleteQueryBuilder()
+ $this->getDb()->newDeleteQueryBuilder()
->deleteFrom( 'revision' )
->where( [ 'rev_id' => $status->getNewRevision()->getId() ] )
->caller( __METHOD__ )