few more test cases for scanning folders
This commit is contained in:
parent
aaa1b73364
commit
08bb5dbe3a
1 changed files with 7 additions and 0 deletions
7
tests/lib/files/cache/scanner.php
vendored
7
tests/lib/files/cache/scanner.php
vendored
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue