aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php
diff options
context:
space:
mode:
authorDerick Alangi <alangiderick@gmail.com>2022-07-06 15:05:52 +0100
committerDerick Alangi <alangiderick@gmail.com>2022-07-12 14:40:46 +0100
commitf88eab53a6c31aee80a37a87a31cfd57e97f3c53 (patch)
treed0999144024d03c8e336938270e5b6a6abc454a1 /tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php
parent5a988198093ea5acc834c6a47c500af912b4ab65 (diff)
downloadmediawikicore-f88eab53a6c31aee80a37a87a31cfd57e97f3c53.tar.gz
mediawikicore-f88eab53a6c31aee80a37a87a31cfd57e97f3c53.zip
tests: Use `overrideConfig(Value|Values)` where needed
This continues the work in the child patch to replace callers of setMwGlobals() with the appropriate method. Directory this patch covers is `tests/phpunit/integration/`. Change-Id: I0a9abf0d2a43587f2ffa029b68024a1ba5165fc7
Diffstat (limited to 'tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php')
-rw-r--r--tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php b/tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php
index 8eb454098eaa..358b4069254e 100644
--- a/tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php
+++ b/tests/phpunit/integration/includes/Rest/Handler/ParsoidHTMLHelperTest.php
@@ -9,6 +9,7 @@ use Exception;
use ExtensionRegistry;
use HashBagOStuff;
use MediaWiki\Edit\SimpleParsoidOutputStash;
+use MediaWiki\MainConfigNames;
use MediaWiki\Page\PageRecord;
use MediaWiki\Parser\Parsoid\ParsoidOutputAccess;
use MediaWiki\Parser\Parsoid\ParsoidRenderID;
@@ -106,7 +107,7 @@ class ParsoidHTMLHelperTest extends MediaWikiIntegrationTestCase {
$this->markTestSkipped( 'Parsoid is not configured' );
}
- $this->setMwGlobals( 'wgCacheEpoch', self::CACHE_EPOCH );
+ $this->overrideConfigValue( MainConfigNames::CacheEpoch, self::CACHE_EPOCH );
// Clean up these tables after each test
$this->tablesUsed = [