diff options
Diffstat (limited to 'tests/phpunit/includes/user/TalkPageNotificationManagerTest.php')
-rw-r--r-- | tests/phpunit/includes/user/TalkPageNotificationManagerTest.php | 4 |
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 |