summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-02-13 15:01:05 +0100
committerRobin Appelman <icewind@owncloud.com>2015-02-13 15:01:05 +0100
commit6ecfcde954f65a69641da7beaa3d9008924a7bc3 (patch)
treea01890c9ea5bae00c6fb5a2123cb93a29434edd1
parent134243d3e5a78b51f20ac0816d462c1de8e121c8 (diff)
downloadnextcloud-server-6ecfcde954f65a69641da7beaa3d9008924a7bc3.tar.gz
nextcloud-server-6ecfcde954f65a69641da7beaa3d9008924a7bc3.zip
update test
-rw-r--r--tests/lib/files/cache/updaterlegacy.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/files/cache/updaterlegacy.php b/tests/lib/files/cache/updaterlegacy.php
index 7cf4dc6df5f..99cacca8e95 100644
--- a/tests/lib/files/cache/updaterlegacy.php
+++ b/tests/lib/files/cache/updaterlegacy.php
@@ -284,6 +284,7 @@ class UpdaterLegacy extends \Test\TestCase {
$time = 1371006070;
$barCachedData = $this->cache->get('folder/bar.txt');
$folderCachedData = $this->cache->get('folder');
+ $this->cache->put('', ['mtime' => $time - 100]);
Filesystem::touch('folder/bar.txt', $time);
$cachedData = $this->cache->get('folder/bar.txt');
$this->assertInternalType('string', $barCachedData['etag']);
@@ -314,6 +315,7 @@ class UpdaterLegacy extends \Test\TestCase {
$fooCachedData = $cache2->get('foo.txt');
$cachedData = $cache2->get('foo.txt');
$time = 1371006070;
+ $this->cache->put('folder', ['mtime' => $time - 100]);
Filesystem::touch('folder/substorage/foo.txt', $time);
$cachedData = $cache2->get('foo.txt');
$this->assertInternalType('string', $fooCachedData['etag']);