diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2023-07-16 20:59:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2023-07-16 20:59:19 +0000 |
commit | c943ebf8dbe6db613f04a7253dc63eff29a95c20 (patch) | |
tree | 32240cf7d7843d4dc765447803056cfa346ec47c /tests | |
parent | 2239938e64f4c16d2084c64997571fe7b193d6d2 (diff) | |
parent | 1acfd7c45ff85bc8ee532de4f1f766a4faadf9cd (diff) | |
download | mediawikicore-c943ebf8dbe6db613f04a7253dc63eff29a95c20.tar.gz mediawikicore-c943ebf8dbe6db613f04a7253dc63eff29a95c20.zip |
Merge "OutputPageTest: specify required config value"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/phpunit/includes/OutputPageTest.php | 7 |
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 ); |