Add test for calculating size of newly empty folder
This commit is contained in:
parent
1faac6108c
commit
afff750011
|
@ -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'));
|
||||
|
|
Loading…
Reference in New Issue