From ba139dd55aa7fc446d4245d157f2c26c5d75e42d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 8 May 2019 13:01:05 +0200 Subject: [PATCH] make test more reliable (hopefully) Signed-off-by: Robin Appelman --- tests/ACL/RuleManagerTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ACL/RuleManagerTest.php b/tests/ACL/RuleManagerTest.php index 3c71a8ba6..b4941ba78 100644 --- a/tests/ACL/RuleManagerTest.php +++ b/tests/ACL/RuleManagerTest.php @@ -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(); @@ -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); } }