summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-05 10:11:58 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-05 10:11:58 -0700
commit4e04a710b6a5e711e673e94d138d0ee1e1d6ef30 (patch)
treeff0ae478ae50e226b48be422dcc3d9d509120cb8
parentd14c5a3fa79ba7d10d9b93adb56763e1bb06e437 (diff)
parent3f5eb762b6d7572b68c77f0009a76ff9b1f8d946 (diff)
downloadnextcloud-server-4e04a710b6a5e711e673e94d138d0ee1e1d6ef30.tar.gz
nextcloud-server-4e04a710b6a5e711e673e94d138d0ee1e1d6ef30.zip
Merge pull request #3955 from owncloud/cache-scanner-test
Scanner test: ensure mtime in the cache is the same as on the storage to...
-rw-r--r--tests/lib/files/cache/scanner.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/files/cache/scanner.php b/tests/lib/files/cache/scanner.php
index 042bf8991f6..263ceadccc7 100644
--- a/tests/lib/files/cache/scanner.php
+++ b/tests/lib/files/cache/scanner.php
@@ -132,6 +132,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
$this->scanner->scan('');
$oldData = $this->cache->get('');
$this->storage->unlink('folder/bar.txt');
+ $this->cache->put('folder', array('mtime' => $this->storage->filemtime('folder')));
$this->scanner->scan('', \OC\Files\Cache\Scanner::SCAN_SHALLOW, \OC\Files\Cache\Scanner::REUSE_SIZE);
$newData = $this->cache->get('');
$this->assertNotEquals($oldData['etag'], $newData['etag']);