tests: ensure LocalServerObjectCache is reset before redefining

If an extension uses this service somewhere, redefining before
resetting it breaks the tests.

Follows-up: Ia60cb0bc18b235f23d9778da8241f65accfc0d35
Change-Id: Ie930f2bbab3d31831751caa1ca342fd9a023b19b
This commit is contained in:
mainframe98 2022-07-16 12:29:58 +02:00
parent 32a4629b3d
commit 00eab3cef3

View file

@ -1229,6 +1229,7 @@ abstract class MediaWikiIntegrationTestCase extends PHPUnit\Framework\TestCase {
[ 'main' => $bootstrapConfig ]
)
);
$newServices->resetServiceForTesting( 'LocalServerObjectCache' );
$newServices->redefineService(
'LocalServerObjectCache',
static function ( MediaWikiServices $services ) {