aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-08-17 22:33:06 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2022-08-17 22:33:58 +0200
commit167fb2a9792e77a56be6701a7f7ec72c4529c871 (patch)
tree7f684136253e746d9daeb0fb7e7c41d4d4f07254 /tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php
parent44735dff5a264adf324b0d0d49b1f8a0863356cf (diff)
downloadmediawikicore-167fb2a9792e77a56be6701a7f7ec72c4529c871.tar.gz
mediawikicore-167fb2a9792e77a56be6701a7f7ec72c4529c871.zip
unit tests: Use MainConfigNames constant to refer configs
When creating ServiceOptions objects or fake HashConfigs use the constant to refer the config name Change-Id: I59a29f25b76e896c07e82156c6cc4494f98e64cc
Diffstat (limited to 'tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php')
-rw-r--r--tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php b/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php
index b1e10c0e3960..39512b7022ce 100644
--- a/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php
+++ b/tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php
@@ -2,6 +2,7 @@
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Json\JsonCodec;
+use MediaWiki\MainConfigNames;
use MediaWiki\Page\WikiPageFactory;
use MediaWiki\Parser\ParserCacheFactory;
use MediaWiki\Parser\RevisionOutputCache;
@@ -17,8 +18,8 @@ class ParserCacheFactoryTest extends MediaWikiUnitTestCase {
*/
private function newParserCacheFactory() {
$options = new ServiceOptions( ParserCacheFactory::CONSTRUCTOR_OPTIONS, [
- 'CacheEpoch' => '20200202112233',
- 'OldRevisionParserCacheExpireTime' => 60,
+ MainConfigNames::CacheEpoch => '20200202112233',
+ MainConfigNames::OldRevisionParserCacheExpireTime => 60,
] );
return new ParserCacheFactory(