diff options
author | Wandji69 <collinschuwa@gmail.com> | 2024-06-13 17:53:25 +0100 |
---|---|---|
committer | Wandji69 <collinschuwa@gmail.com> | 2024-06-23 23:47:56 +0100 |
commit | c257e2276c8bbd57c85a516722eb047b3af2ebb9 (patch) | |
tree | bfa24e0f5f4d522744616c9c61979e00d96ac429 /tests/phpunit/includes/api/query/ApiQueryBlocksTest.php | |
parent | ed919c186be3598edf7df9f0adfe971f76f88908 (diff) | |
download | mediawikicore-c257e2276c8bbd57c85a516722eb047b3af2ebb9.tar.gz mediawikicore-c257e2276c8bbd57c85a516722eb047b3af2ebb9.zip |
Replace db with getDb for Tests
Bug: T316841
Change-Id: I29e535e8ee9b5641a4546d53b98cd5060d39681d
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryBlocksTest.php')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQueryBlocksTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php b/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php index 3fd958628808..8d5c0c220c05 100644 --- a/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php +++ b/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php @@ -105,7 +105,7 @@ class ApiQueryBlocksTest extends ApiTestCase { $pageData = $this->insertPage( $title ); $pageId = $pageData['id']; - $this->db->newInsertQueryBuilder() + $this->getDb()->newInsertQueryBuilder() ->insertInto( 'ipblocks_restrictions' ) ->row( [ 'ir_ipb_id' => $block->getId(), |