]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add test for calculating size of newly empty folder
authorMichael Gapczynski <mtgap@owncloud.com>
Mon, 29 Jul 2013 14:23:14 +0000 (10:23 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Mon, 29 Jul 2013 14:23:14 +0000 (10:23 -0400)
tests/lib/files/cache/cache.php

index 527c1d1b2a13c84092ab68175393dedb7b5f4698..247373a5cb9fd641b8e8e07a1f2f793650313bd7 100644 (file)
@@ -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'));