aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/deferred/DeferredUpdatesTest.php
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2023-08-25 00:38:02 +0100
committerTimo Tijhof <krinkle@fastmail.com>2023-09-09 20:42:02 +0100
commite56552557f0da1260ea567c3c936f5c7a1a3c760 (patch)
treea8b2149ace05f4c534ba0a053966d703eb92fc2e /tests/phpunit/includes/deferred/DeferredUpdatesTest.php
parent47cdcbac8b3fbefb64b70319090c1add021d195b (diff)
downloadmediawikicore-e56552557f0da1260ea567c3c936f5c7a1a3c760.tar.gz
mediawikicore-e56552557f0da1260ea567c3c936f5c7a1a3c760.zip
deferred: Decouple DeferredUpdates from MediaWikiServices
* Create task-specific methods with simple defaults that require no mocking or stubbing of any kind, as used by the pure unit tests where service container (and by extent, storage services) are disabled. * Remove all use of global variables, LBFactory, JobQueue, StatsdFactory, and RequestContext. Bug: T265749 Change-Id: If85c448d2d1b806e70f641f06263680d49c6eeec
Diffstat (limited to 'tests/phpunit/includes/deferred/DeferredUpdatesTest.php')
-rw-r--r--tests/phpunit/includes/deferred/DeferredUpdatesTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/deferred/DeferredUpdatesTest.php b/tests/phpunit/includes/deferred/DeferredUpdatesTest.php
index 1ed7bdb8c2b8..d53cd1d7af9d 100644
--- a/tests/phpunit/includes/deferred/DeferredUpdatesTest.php
+++ b/tests/phpunit/includes/deferred/DeferredUpdatesTest.php
@@ -356,8 +356,7 @@ class DeferredUpdatesTest extends MediaWikiIntegrationTestCase {
$called = true;
},
$fname
- ),
- $lbFactory
+ )
);
$this->assertTrue( $called, "Callback ran" );