Skip to content
Snippets Groups Projects
Commit 4e04a710 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #3955 from owncloud/cache-scanner-test

Scanner test: ensure mtime in the cache is the same as on the storage to...
parents d14c5a3f 3f5eb762
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment