[tests-only][full-ci]adding tests for enable disable sync when sharer is deleted (#9130)
* adding tests for enable disable sync when sharer is deleted * addhressing reviews
This commit is contained in:
@@ -1881,6 +1881,7 @@ trait Provisioning {
|
||||
$response = $this->graphContext->deleteGroupWithName($group);
|
||||
$this->theHTTPStatusCodeShouldBe(204, "", $response);
|
||||
}
|
||||
$this->rememberThatGroupIsNotExpectedToExist($group);
|
||||
Assert::assertFalse(
|
||||
$this->groupExists($group),
|
||||
"Group '$group' should not exist but does exist"
|
||||
@@ -1937,7 +1938,7 @@ trait Provisioning {
|
||||
$response = $this->graphContext->removeUserFromGroup($group, $user);
|
||||
$this->TheHTTPStatusCodeShouldBe(204, '', $response);
|
||||
}
|
||||
|
||||
|
||||
if (OcisHelper::isTestingOnReva()) {
|
||||
$fullUrl = $this->getBaseUrl() . "/ocs/v2.php/cloud/users/$user/groups";
|
||||
$response = HttpRequestHelper::get(
|
||||
|
||||
@@ -1001,6 +1001,7 @@ class SharingNgContext implements Context {
|
||||
|
||||
/**
|
||||
* @When user :user disables sync of share :share using the Graph API
|
||||
* @When user :user tries to disable sync of share :share using the Graph API
|
||||
*
|
||||
* @param string $user
|
||||
*
|
||||
@@ -1080,7 +1081,10 @@ class SharingNgContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* step definition for enabling sync for items for non-existing group|user|space sharer
|
||||
*
|
||||
* @When user :user tries to enable share sync of a resource :resource using the Graph API
|
||||
* @When user :user enables share sync of a resource :resource using the Graph API
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $resource
|
||||
|
||||
Reference in New Issue
Block a user