summaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-17 14:38:27 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-20 13:13:09 -0600
commit4157e7914ab4d9eb72ac0eecf4ed5c5fcaef89a5 (patch)
tree141a1652eab61bbbf72c472982c76707f54f17e3 /build/integration
parent4626514a35510a6c730fd1d484936524012f44d8 (diff)
downloadnextcloud-server-4157e7914ab4d9eb72ac0eecf4ed5c5fcaef89a5.tar.gz
nextcloud-server-4157e7914ab4d9eb72ac0eecf4ed5c5fcaef89a5.zip
Fix deletion of groups
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/features/bootstrap/Provisioning.php8
1 files changed, 7 insertions, 1 deletions
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);
}