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

Scanner test: ensure mtime in the cache is the same as on the storage to...
This commit is contained in:
Thomas Müller 2013-07-05 10:11:58 -07:00
commit 4e04a710b6
1 changed files with 1 additions and 0 deletions

View File

@ -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']);