]> source.dussan.org Git - nextcloud-server.git/commitdiff
update test
authorRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 14:01:05 +0000 (15:01 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 13 Feb 2015 14:01:05 +0000 (15:01 +0100)
tests/lib/files/cache/updaterlegacy.php

index 7cf4dc6df5f59acd92e41f728bf2458aeb5e732e..99cacca8e95a0c7c71ccfda27afeaee14c5a2872 100644 (file)
@@ -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']);