aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/page/WikiPageDbTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/page/WikiPageDbTest.php')
-rw-r--r--tests/phpunit/includes/page/WikiPageDbTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/phpunit/includes/page/WikiPageDbTest.php b/tests/phpunit/includes/page/WikiPageDbTest.php
index f9ef7c6be00b..ce4b21f15b6d 100644
--- a/tests/phpunit/includes/page/WikiPageDbTest.php
+++ b/tests/phpunit/includes/page/WikiPageDbTest.php
@@ -391,7 +391,7 @@ class WikiPageDbTest extends MediaWikiLangTestCase {
// as long as no garbage is written to the database.
}
- $row = $this->db->newSelectQueryBuilder()
+ $row = $this->getDb()->newSelectQueryBuilder()
->select( '*' )
->from( 'page' )
->where( [ 'page_namespace' => $title->getNamespace(), 'page_title' => $title->getDBkey() ] )
@@ -1406,7 +1406,7 @@ more stuff
] ] );
// Check the page_random field has been filled
- $pageRandom = $this->db->newSelectQueryBuilder()
+ $pageRandom = $this->getDb()->newSelectQueryBuilder()
->select( 'page_random' )
->from( 'page' )
->where( $condition )
@@ -1414,7 +1414,7 @@ more stuff
$this->assertTrue( (float)$pageRandom < 1 && (float)$pageRandom > 0 );
// Assert the touched timestamp in the DB is roughly when we inserted the page
- $pageTouched = $this->db->newSelectQueryBuilder()
+ $pageTouched = $this->getDb()->newSelectQueryBuilder()
->select( 'page_touched' )
->from( 'page' )
->where( $condition )
@@ -1853,7 +1853,7 @@ more stuff
public function testGetTouched() {
$page = $this->createPage( __METHOD__, 'whatever' );
- $touched = $this->db->newSelectQueryBuilder()
+ $touched = $this->getDb()->newSelectQueryBuilder()
->select( 'page_touched' )
->from( 'page' )
->where( [ 'page_id' => $page->getId() ] )