getTempManager()->getTemporaryFolder(); $this->storage = new LocalRootStorage(['datadir' => $folder]); } public function testDontScanUsers(): void { $this->storage->mkdir('foo'); $this->storage->mkdir('foo/bar'); $this->storage->getScanner()->scan(''); $this->assertFalse($this->storage->getCache()->inCache('foo')); } public function testDoScanAppData(): void { $this->storage->mkdir('appdata_foo'); $this->storage->mkdir('appdata_foo/bar'); $this->storage->getScanner()->scan(''); $this->assertTrue($this->storage->getCache()->inCache('appdata_foo')); $this->assertTrue($this->storage->getCache()->inCache('appdata_foo/bar')); } }