aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit')
-rw-r--r--tests/phpunit/includes/OutputPageTest.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/phpunit/includes/OutputPageTest.php b/tests/phpunit/includes/OutputPageTest.php
index 973797b835d5..a401b0d58fef 100644
--- a/tests/phpunit/includes/OutputPageTest.php
+++ b/tests/phpunit/includes/OutputPageTest.php
@@ -614,10 +614,9 @@ class OutputPageTest extends MediaWikiIntegrationTestCase {
$request->setHeader( 'If-Modified-Since', $ifModifiedSince );
}
- if ( !isset( $config['CacheEpoch'] ) ) {
- // Make sure it's not too recent
- $config['CacheEpoch'] = '20000101000000';
- }
+ // Make sure it's not too recent
+ $config['CacheEpoch'] ??= '20000101000000';
+ $config['CachePages'] ??= true;
$op = $this->newInstance( $config, $request );