mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-11 16:49:43 +00:00
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:
parent
561254697d
commit
a631066d62
|
@ -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() );
|
||||
|
|
Loading…
Reference in a new issue