diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php index 3d7f77cb54e6d0eb4e1bb5cb05d3b78e8812005e..9a64375f4e3edba5aaa8c1d4bf24a7398def6552 100644 --- a/tests/lib/files/cache/cache.php +++ b/tests/lib/files/cache/cache.php @@ -205,7 +205,7 @@ class Cache extends \Test\TestCase { $fileData['unkownSize'] = array('size' => 5, 'mtime' => 25, 'mimetype' => 'foo/file'); $this->cache->put($file4, $fileData['unkownSize']); - $this->assertEquals(916, $this->cache->calculateFolderSize($file1)); + $this->assertEquals(1025, $this->cache->calculateFolderSize($file1)); // direct cache entry retrieval returns the original values $entry = $this->cache->get($file1); $this->assertEquals(1025, $entry['size']); diff --git a/tests/lib/files/storage/wrapper/quota.php b/tests/lib/files/storage/wrapper/quota.php index ec2c907ba9098649a2168da78ce616fc635f15dd..a5828296be9474f19ed02d44e3369f9623910f88 100644 --- a/tests/lib/files/storage/wrapper/quota.php +++ b/tests/lib/files/storage/wrapper/quota.php @@ -87,7 +87,7 @@ class Quota extends \Test\Files\Storage\Storage { $instance->getCache()->put( '', array('size' => 7) ); - $this->assertEquals(6, $instance->free_space('')); + $this->assertEquals(2, $instance->free_space('')); } public function testFWriteNotEnoughSpace() {