one additional test case for the cache updater

This commit is contained in:
Robin Appelman 2012-12-11 01:25:21 +01:00
parent 438d3c21f6
commit cc0a0df88b

View file

@ -99,6 +99,11 @@ class Updater extends \PHPUnit_Framework_TestCase {
$this->assertFalse($this->cache->inCache('foo.txt'));
$cachedData = $this->cache->get('');
$this->assertEquals(2 * $textSize + $imageSize, $cachedData['size']);
Filesystem::mkdir('bar_folder');
$this->assertTrue($this->cache->inCache('bar_folder'));
Filesystem::rmdir('bar_folder');
$this->assertFalse($this->cache->inCache('bar_folder'));
}
public function testRename() {