Skip to content

Commit

Permalink
make test more reliable (hopefully)
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed May 8, 2019
1 parent 21612fb commit ba139dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ACL/RuleManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ public function testGetByParent() {
$storage->mkdir('foo');
$storage->mkdir('foo/bar');
$storage->mkdir('foo/asd');
$storage->mkdir('foo/none');
$storage->getScanner()->scan('');
$cache = $storage->getCache();
$id1 = (int)$cache->getId('foo/none');
$id2 = (int)$cache->getId('foo/bar');
$id3 = (int)$cache->getId('foo/asd');
$storageId = $cache->getNumericStorageId();
Expand All @@ -148,6 +146,6 @@ public function testGetByParent() {
$this->ruleManager->saveRule($rule2);

$result = $this->ruleManager->getRulesForFilesByParent($this->user, $storageId, 'foo');
$this->assertEquals(['foo/bar' => [$rule1], 'foo/asd' => [$rule2], 'foo/none' => []], $result);
$this->assertEquals(['foo/bar' => [$rule1], 'foo/asd' => [$rule2]], $result);
}
}

0 comments on commit ba139dd

Please sign in to comment.