]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing unit test - expected value change due to different size being stored in cache...
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 12:30:01 +0000 (14:30 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 12:30:01 +0000 (14:30 +0200)
tests/lib/files/cache/cache.php
tests/lib/files/storage/wrapper/quota.php

index 3d7f77cb54e6d0eb4e1bb5cb05d3b78e8812005e..9a64375f4e3edba5aaa8c1d4bf24a7398def6552 100644 (file)
@@ -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']);
index ec2c907ba9098649a2168da78ce616fc635f15dd..a5828296be9474f19ed02d44e3369f9623910f88 100644 (file)
@@ -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() {