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/page/PageStoreTest.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/page/PageStoreTest.php')
-rw-r--r-- | tests/phpunit/includes/page/PageStoreTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/page/PageStoreTest.php b/tests/phpunit/includes/page/PageStoreTest.php index a327700e51ba..2ba4d15bc1bc 100644 --- a/tests/phpunit/includes/page/PageStoreTest.php +++ b/tests/phpunit/includes/page/PageStoreTest.php @@ -131,7 +131,7 @@ class PageStoreTest extends MediaWikiIntegrationTestCase { * @covers \MediaWiki\Page\PageStore::getPageForLink */ public function testGetPageForLink_crossWiki() { - $wikiId = $this->db->getDomainID(); // pretend sister site + $wikiId = $this->getDb()->getDomainID(); // pretend sister site $nonexistingPage = $this->getNonexistingTestPage(); $pageStore = $this->getPageStore( [], [ 'wikiId' => $wikiId, 'linkCache' => null ] ); @@ -663,7 +663,7 @@ class PageStoreTest extends MediaWikiIntegrationTestCase { $existingPage = $this->getExistingTestPage(); $pageStore = $this->getPageStore(); - $row = $this->db->newSelectQueryBuilder() + $row = $this->getDb()->newSelectQueryBuilder() ->select( $pageStore->getSelectFields() ) ->from( 'page' ) ->where( [ 'page_id' => $existingPage->getId() ] ) |