fix illegal usage of unlink in test case
This commit is contained in:
parent
ea44f0e20f
commit
1302602173
1 changed files with 1 additions and 1 deletions
2
tests/lib/files/cache/scanner.php
vendored
2
tests/lib/files/cache/scanner.php
vendored
|
@ -195,7 +195,7 @@ class Scanner extends \PHPUnit_Framework_TestCase {
|
|||
|
||||
$this->scanner->scan('');
|
||||
$this->assertTrue($this->cache->inCache('folder/bar.txt'));
|
||||
$this->storage->unlink('/folder');
|
||||
$this->storage->rmdir('/folder');
|
||||
$this->scanner->scan('', \OC\Files\Cache\Scanner::SCAN_SHALLOW);
|
||||
$this->assertFalse($this->cache->inCache('folder'));
|
||||
$this->assertFalse($this->cache->inCache('folder/bar.txt'));
|
||||
|
|
Loading…
Reference in a new issue