use different value for mtime and storage_mtime in test

This commit is contained in:
Robin Appelman 2014-01-14 15:13:21 +01:00
parent 4113042c8f
commit 7e4c80fd60
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Updater extends \PHPUnit_Framework_TestCase {
public function testWrite() {
$textSize = strlen("dummy file data\n");
$imageSize = filesize(\OC::$SERVERROOT . '/core/img/logo.png');
$this->cache->put('foo.txt', array('mtime' => 100, 'storage_mtime' => 100));
$this->cache->put('foo.txt', array('mtime' => 100, 'storage_mtime' => 150));
$rootCachedData = $this->cache->get('');
$this->assertEquals(3 * $textSize + $imageSize, $rootCachedData['size']);