few more test cases for scanning folders

This commit is contained in:
Robin Appelman 2012-10-03 18:19:45 +02:00
parent aaa1b73364
commit 08bb5dbe3a
1 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,13 @@ class Scanner extends \UnitTestCase {
$this->assertEqual($cachedDataFolder['size'], -1);
$this->assertEqual($cachedDataFolder2['size'], -1);
$this->scanner->scan('folder', \OC\Files\Cache\Scanner::SCAN_SHALLOW);
$cachedDataFolder = $this->cache->get('');
$cachedDataFolder2 = $this->cache->get('folder');
$this->assertNotEqual($cachedDataFolder['size'], -1);
}
function setUp() {