aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/user/UserGroupManagerTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-01-27 21:19:18 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2022-01-27 21:37:50 +0100
commit68808e5832d2230305fd8cd22bf88eefce675739 (patch)
tree7a4764309b97810de93d8e617234e734650dce51 /tests/phpunit/includes/user/UserGroupManagerTest.php
parente05dde5bc4bcfa5b636272978ff9be5100aebe94 (diff)
downloadmediawikicore-68808e5832d2230305fd8cd22bf88eefce675739.tar.gz
mediawikicore-68808e5832d2230305fd8cd22bf88eefce675739.zip
Replace deprecated JobQueueGroup::singleton()
Change-Id: Icdb301d352d302f70fefba9b40df2368cb217fd2
Diffstat (limited to 'tests/phpunit/includes/user/UserGroupManagerTest.php')
-rw-r--r--tests/phpunit/includes/user/UserGroupManagerTest.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/phpunit/includes/user/UserGroupManagerTest.php b/tests/phpunit/includes/user/UserGroupManagerTest.php
index 2cc642fbd18b..634788e73170 100644
--- a/tests/phpunit/includes/user/UserGroupManagerTest.php
+++ b/tests/phpunit/includes/user/UserGroupManagerTest.php
@@ -21,7 +21,6 @@
namespace MediaWiki\Tests\User;
use InvalidArgumentException;
-use JobQueueGroup;
use LogEntryBase;
use MediaWiki\Block\DatabaseBlock;
use MediaWiki\Config\ServiceOptions;
@@ -105,12 +104,6 @@ class UserGroupManagerTest extends MediaWikiIntegrationTestCase {
$this->tablesUsed[] = 'user_former_groups';
$this->tablesUsed[] = 'logging';
$this->expiryTime = wfTimestamp( TS_MW, time() + 100500 );
-
- // Workaround: Force instantiate JobQueueGroup before overriding ConfiguredReadOnlyMode.
- // Setting read-only mode before JobQueueGroup instantiation will cache the read-only state
- // inside JobQueueGroup and JobQueue instances and will prevent them from being reset by
- // resetNonServiceCaches().
- JobQueueGroup::singleton();
}
/**