wiki.techinc.nl/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php

32 lines
617 B
PHP
Raw Normal View History

<?php
use MediaWiki\Parser\ParserCacheFactory;
/**
* @covers \MediaWiki\Parser\ParserCacheFactory
*/
class ParserCacheFactoryTest extends MediaWikiUnitTestCase {
use FactoryArgTestTrait;
protected static function getFactoryClass() {
return ParserCacheFactory::class;
}
protected static function getInstanceClass() {
return ParserCache::class;
}
protected static function getFactoryMethodName() {
return 'getInstance';
}
protected static function getExtraClassArgCount() {
// $name
return 1;
}
protected function getIgnoredParamNames() {
return [ 'cacheBackend', 'hookContainer' ];
}
}