tests: Switch test from newEmpty to new HashBagOStuff

Follows-up I24af0c2fa75. I forgot that newEmpty uses the "always empty"
EmptyBag, as opposed to an "initially empty" HashBag.

Change-Id: I62075bf685223b31c161508f99f95ee46280450b
This commit is contained in:
Timo Tijhof 2023-12-13 03:08:38 +00:00
parent 561254697d
commit a631066d62

View file

@ -39,7 +39,7 @@ EOT;
*/
public function testCacheInvalidationOnSave() {
$services = $this->getServiceContainer();
$wanCache = WANObjectCache::newEmpty();
$wanCache = new WANObjectCache( [ 'cache' => new HashBagOStuff ] );
$wanCache->useInterimHoldOffCaching( false );
$repo = new MediaWikiGadgetsDefinitionRepo( $wanCache, $services->getRevisionLookup() );