fix
This commit is contained in:
1 parent
056bb25b57
commit
489b3f8dca
2 files changed
+9
-9
No files matched your search
@@ -226,9 +226,9 @@ Feature: Change data of space
|
|||||||
|
|
||||||
|
|
||||||
Scenario: user sends invalid space uuid via the Graph API
|
Scenario: user sends invalid space uuid via the Graph API
|
||||||
When user "Admin" ties to change the name of the "non-existing" space to "new name"
|
When user "Admin" tries to change the name of the "non-existing" space to "new name"
|
||||||
Then the HTTP status code should be "404"
|
Then the HTTP status code should be "404"
|
||||||
When user "Admin" ties to change the quota of the "non-existing" space to "10"
|
When user "Admin" tries to change the quota of the "non-existing" space to "10"
|
||||||
Then the HTTP status code should be "404"
|
Then the HTTP status code should be "404"
|
||||||
When user "Alice" ties to change the description of the "non-existing" space to "new description"
|
When user "Alice" tries to change the description of the "non-existing" space to "new description"
|
||||||
Then the HTTP status code should be "404"
|
Then the HTTP status code should be "404"
|
||||||
@@ -1271,7 +1271,7 @@ class SpacesContext implements Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @When /^user "([^"]*)" (?:changes|ties to change) the name of the "([^"]*)" space to "([^"]*)"$/
|
* @When /^user "([^"]*)" (?:changes|tries to change) the name of the "([^"]*)" space to "([^"]*)"$/
|
||||||
*
|
*
|
||||||
* @param string $user
|
* @param string $user
|
||||||
* @param string $spaceName
|
* @param string $spaceName
|
||||||
@@ -1288,7 +1288,7 @@ class SpacesContext implements Context {
|
|||||||
): void {
|
): void {
|
||||||
if ($spaceName === "non-existing") {
|
if ($spaceName === "non-existing") {
|
||||||
// check sending invalid data
|
// check sending invalid data
|
||||||
$spaceId = WebDavHelper::generateUUIDv4();
|
$spaceId = "39c49dd3-1f24-4687-97d1-42df43f71713";
|
||||||
} else {
|
} else {
|
||||||
$space = $this->getSpaceByName($user, $spaceName);
|
$space = $this->getSpaceByName($user, $spaceName);
|
||||||
$spaceId = $space["id"];
|
$spaceId = $space["id"];
|
||||||
@@ -1309,7 +1309,7 @@ class SpacesContext implements Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @When /^user "([^"]*)" (?:changes|ties to change) the description of the "([^"]*)" space to "([^"]*)"$/
|
* @When /^user "([^"]*)" (?:changes|tries to change) the description of the "([^"]*)" space to "([^"]*)"$/
|
||||||
*
|
*
|
||||||
* @param string $user
|
* @param string $user
|
||||||
* @param string $spaceName
|
* @param string $spaceName
|
||||||
@@ -1326,7 +1326,7 @@ class SpacesContext implements Context {
|
|||||||
): void {
|
): void {
|
||||||
if ($spaceName === "non-existing") {
|
if ($spaceName === "non-existing") {
|
||||||
// check sending invalid data
|
// check sending invalid data
|
||||||
$spaceId = WebDavHelper::generateUUIDv4();
|
$spaceId = "39c49dd3-1f24-4687-97d1-42df43f71713";
|
||||||
} else {
|
} else {
|
||||||
$space = $this->getSpaceByName($user, $spaceName);
|
$space = $this->getSpaceByName($user, $spaceName);
|
||||||
$spaceId = $space["id"];
|
$spaceId = $space["id"];
|
||||||
@@ -1347,7 +1347,7 @@ class SpacesContext implements Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @When /^user "([^"]*)" (?:changes|ties to change) the quota of the "([^"]*)" space to "([^"]*)"$/
|
* @When /^user "([^"]*)" (?:changes|tries to change) the quota of the "([^"]*)" space to "([^"]*)"$/
|
||||||
*
|
*
|
||||||
* @param string $user
|
* @param string $user
|
||||||
* @param string $spaceName
|
* @param string $spaceName
|
||||||
@@ -1364,7 +1364,7 @@ class SpacesContext implements Context {
|
|||||||
): void {
|
): void {
|
||||||
if ($spaceName === "non-existing") {
|
if ($spaceName === "non-existing") {
|
||||||
// check sending invalid data
|
// check sending invalid data
|
||||||
$spaceId = WebDavHelper::generateUUIDv4();
|
$spaceId = "39c49dd3-1f24-4687-97d1-42df43f71713";
|
||||||
} else {
|
} else {
|
||||||
$space = $this->getSpaceByName($user, $spaceName);
|
$space = $this->getSpaceByName($user, $spaceName);
|
||||||
$spaceId = $space["id"];
|
$spaceId = $space["id"];
|
||||||
|
|||||||
Reference in new issue
Block a user