From 4157e7914ab4d9eb72ac0eecf4ed5c5fcaef89a5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 17 Mar 2017 14:38:27 +0100 Subject: Fix deletion of groups Signed-off-by: Joas Schilling --- build/integration/features/bootstrap/Provisioning.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 0055ff15de0..2e17508120c 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -331,6 +331,12 @@ trait Provisioning { ]; $this->response = $client->send($client->createRequest("DELETE", $fullUrl, $options)); + + if ($this->currentServer === 'LOCAL'){ + unset($this->createdGroups[$group]); + } elseif ($this->currentServer === 'REMOTE') { + unset($this->createdRemoteGroups[$group]); + } } /** @@ -748,7 +754,7 @@ trait Provisioning { } $this->usingServer('REMOTE'); foreach($this->createdRemoteGroups as $remoteGroup) { - $this->deleteUser($remoteGroup); + $this->deleteGroup($remoteGroup); } $this->usingServer($previousServer); } -- cgit v1.2.3