aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/user/TalkPageNotificationManagerTest.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/user/TalkPageNotificationManagerTest.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/user/TalkPageNotificationManagerTest.php')
-rw-r--r--tests/phpunit/includes/user/TalkPageNotificationManagerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/user/TalkPageNotificationManagerTest.php b/tests/phpunit/includes/user/TalkPageNotificationManagerTest.php
index 3963d8ea17fb..70aada71125c 100644
--- a/tests/phpunit/includes/user/TalkPageNotificationManagerTest.php
+++ b/tests/phpunit/includes/user/TalkPageNotificationManagerTest.php
@@ -204,7 +204,7 @@ class TalkPageNotificationManagerTest extends MediaWikiIntegrationTestCase {
->where( [ 'user_id' => $user->getId() ] )
->assertFieldValue( $user->getId() );
- $this->db->startAtomic( __METHOD__ ); // let deferred updates queue up
+ $this->getDb()->startAtomic( __METHOD__ ); // let deferred updates queue up
$updateCountBefore = DeferredUpdates::pendingUpdatesCount();
$manager->clearForPageView( $user, $revision );
@@ -214,7 +214,7 @@ class TalkPageNotificationManagerTest extends MediaWikiIntegrationTestCase {
$updateCountAfter = DeferredUpdates::pendingUpdatesCount();
$this->assertGreaterThan( $updateCountBefore, $updateCountAfter, 'An update should have been queued' );
- $this->db->endAtomic( __METHOD__ ); // run deferred updates
+ $this->getDb()->endAtomic( __METHOD__ ); // run deferred updates
$this->assertSame( 0, DeferredUpdates::pendingUpdatesCount(), 'No pending updates' );
// Notification should have been deleted from the DB