diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-01 08:05:19 -0700 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-08-01 08:05:19 -0700 |
commit | eed63ae5127680011256093588a7c68ca95ddd02 (patch) | |
tree | 39a5ebefd4dbb0a97f0eb7c5aebda0cc6292bcd5 /tests | |
parent | 930f0e4c1824405f2be8144187613271fe169c73 (diff) | |
parent | afff75001156e38620e08f81cad6372abb54ebb1 (diff) | |
download | nextcloud-server-eed63ae5127680011256093588a7c68ca95ddd02.tar.gz nextcloud-server-eed63ae5127680011256093588a7c68ca95ddd02.zip |
Merge pull request #4221 from owncloud/fix-3698
Fix calculating size for empty folders
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/files/cache/cache.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php index 527c1d1b2a1..247373a5cb9 100644 --- a/tests/lib/files/cache/cache.php +++ b/tests/lib/files/cache/cache.php @@ -127,6 +127,11 @@ class Cache extends \PHPUnit_Framework_TestCase { $this->assertEquals(1025, $this->cache->calculateFolderSize($file1)); + $this->cache->remove($file2); + $this->cache->remove($file3); + $this->cache->remove($file4); + $this->assertEquals(0, $this->cache->calculateFolderSize($file1)); + $this->cache->remove('folder'); $this->assertFalse($this->cache->inCache('folder/foo')); $this->assertFalse($this->cache->inCache('folder/bar')); |