summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-05-13 19:44:23 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-05-13 19:44:23 +0200
commitd4b5605e03683fedafdb95f821eb32e9a0cb9f8a (patch)
tree9d69532312faa19a130856777f6c84e211441709 /_test
parent59d6be95449db272ee0a6b6d437f535246f795c9 (diff)
parent9d60a747702d8da1436fda4de3126116a7db002b (diff)
downloadrpg-d4b5605e03683fedafdb95f821eb32e9a0cb9f8a.tar.gz
rpg-d4b5605e03683fedafdb95f821eb32e9a0cb9f8a.tar.bz2
Merge pull request #706 from splitbrain/Issue694
Fixes #694
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/cache_use.test.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/_test/tests/inc/cache_use.test.php b/_test/tests/inc/cache_use.test.php
index c54a472a3..02fe329de 100644
--- a/_test/tests/inc/cache_use.test.php
+++ b/_test/tests/inc/cache_use.test.php
@@ -18,11 +18,14 @@ class cache_use_test extends DokuWikiTest {
$conf['cachetime'] = 0; // ensure the value is not -1, which disables caching
saveWikiText($ID, 'Content', 'Created');
- // set the modification time a second in the past in order to ensure that the cache is newer than the page
- touch($file, time()-1);
$this->cache = new cache_renderer($ID, $file, 'xhtml');
$this->cache->storeCache('Test');
+
+ // set the modification times explicitly (overcome Issue #694)
+ $time = time();
+ touch($file, $time-1);
+ touch($this->cache->cache, $time);
}
function test_use() {