diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-12-11 01:25:21 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-12-11 01:25:21 +0100 |
commit | cc0a0df88b3b6fdd2b1f9c85349683eb640f9670 (patch) | |
tree | 9dcfa659083c151d01e0ed8b2f5bc8f0f6857534 /tests/lib | |
parent | 438d3c21f651240e416b6e50ad49f72dd079a9ae (diff) | |
download | nextcloud-server-cc0a0df88b3b6fdd2b1f9c85349683eb640f9670.tar.gz nextcloud-server-cc0a0df88b3b6fdd2b1f9c85349683eb640f9670.zip |
one additional test case for the cache updater
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/files/cache/updater.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/files/cache/updater.php b/tests/lib/files/cache/updater.php index b2eccf9130a..d19966c1910 100644 --- a/tests/lib/files/cache/updater.php +++ b/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() { |