Skip to content

Commit

Permalink
Fix 'Trying to access array offset on value of type bool' in CacheJai…
Browse files Browse the repository at this point in the history
…lTest
  • Loading branch information
phil-davis committed Jan 24, 2020
1 parent 8713166 commit 98ef2aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/lib/Files/Cache/Wrapper/CacheJailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ public function setUp(): void {
$this->cache = new \OC\Files\Cache\Wrapper\CacheJail($this->sourceCache, 'foo');
}

protected function tearDown(): void {
if ($this->sourceCache) {
$this->sourceCache->clear();
}
}

public function testSearchOutsideJail() {
$file1 = 'foo/foobar';
$file2 = 'folder/foobar';
Expand Down

0 comments on commit 98ef2aa

Please sign in to comment.