From 88ab531e177224d1ede306e6e59700c14892c25d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 7 Nov 2024 12:16:46 -0800 Subject: [PATCH] Explicitly call DeferredUpdates::tryOpportunisticExecute() in ThankYouEditTest Change-Id: I423f9a856fddab30e691d78cbcd0b70a292e3916 --- tests/phpunit/ThankYouEditTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/ThankYouEditTest.php b/tests/phpunit/ThankYouEditTest.php index 1789b6407..027f709e1 100644 --- a/tests/phpunit/ThankYouEditTest.php +++ b/tests/phpunit/ThankYouEditTest.php @@ -2,6 +2,7 @@ namespace MediaWiki\Extension\Notifications\Test; +use MediaWiki\Deferred\DeferredUpdates; use MediaWiki\Extension\Notifications\DbFactory; use MediaWiki\Extension\Notifications\Mapper\NotificationMapper; use MediaWiki\Title\Title; @@ -39,6 +40,7 @@ class ThankYouEditTest extends MediaWikiIntegrationTestCase { // action $this->editPage( $title, 'this is my first edit', '', NS_MAIN, $user ); + DeferredUpdates::tryOpportunisticExecute(); // assertions $notificationMapper = new NotificationMapper(); @@ -67,6 +69,7 @@ class ThankYouEditTest extends MediaWikiIntegrationTestCase { for ( $i = 0; $i < 12; $i++ ) { $this->editPage( $page, "this is edit #$i", '', NS_MAIN, $user ); } + DeferredUpdates::tryOpportunisticExecute(); $user->clearInstanceCache(); // assertions