api-tests: delete spaces before users (#1877)
* delete spaces before users * delete users after deleting spaces * fix
This commit is contained in:
@@ -478,20 +478,6 @@ class SpacesContext implements Context {
|
||||
$this->archiverContext = BehatHelper::getContext($scope, $environment, 'ArchiverContext');
|
||||
}
|
||||
|
||||
/**
|
||||
* @AfterScenario
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Exception|GuzzleException
|
||||
*/
|
||||
public function cleanDataAfterTests(): void {
|
||||
if (OcHelper::isTestingOnReva() || OcHelper::isUsingPreparedLdapUsers()) {
|
||||
return;
|
||||
}
|
||||
$this->deleteAllProjectSpaces();
|
||||
}
|
||||
|
||||
/**
|
||||
* the admin user first disables and then deletes spaces
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user