mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
update test
This commit is contained in:
parent
134243d3e5
commit
6ecfcde954
1 changed files with 2 additions and 0 deletions
2
tests/lib/files/cache/updaterlegacy.php
vendored
2
tests/lib/files/cache/updaterlegacy.php
vendored
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue