diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-08-17 22:33:06 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-08-17 22:33:58 +0200 |
commit | 167fb2a9792e77a56be6701a7f7ec72c4529c871 (patch) | |
tree | 7f684136253e746d9daeb0fb7e7c41d4d4f07254 /tests/phpunit/unit/includes/parser/ParserCacheFactoryTest.php | |
parent | 44735dff5a264adf324b0d0d49b1f8a0863356cf (diff) | |
download | mediawikicore-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.php | 5 |
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( |