diff --git a/tests/lib/files/cache/scanner.php b/tests/lib/files/cache/scanner.php index 5182fac8b1..fb06f2dff3 100644 --- a/tests/lib/files/cache/scanner.php +++ b/tests/lib/files/cache/scanner.php @@ -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'));