one additional test case for the cache updater

remotes/origin/stable5
Robin Appelman 13 years ago
parent 438d3c21f6
commit cc0a0df88b
  1. 5
      tests/lib/files/cache/updater.php

@ -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() {

Loading…
Cancel
Save