mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 05:09:46 -06:00
Merge pull request #6113 from owncloud/fix-invalid-acceptance-test-step
[tests-only] Fix invalid acceptance test step
This commit is contained in:
@@ -12,11 +12,11 @@ Feature: get applications
|
||||
Given the administrator has given "Alice" the role "<role>" using the settings api
|
||||
When user "Alice" gets all applications using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the user retrieve API response should contain the following applications information:
|
||||
And the user API response should contain the following application information:
|
||||
| key | value |
|
||||
| displayName | ownCloud Infinite Scale |
|
||||
| id | %uuid_v4% |
|
||||
And the user retrieve API response should contain the following app roles:
|
||||
And the user API response should contain the following app roles:
|
||||
| Admin |
|
||||
| Space Admin |
|
||||
| User |
|
||||
|
||||
@@ -1706,13 +1706,13 @@ class GraphContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then the user retrieve API response should contain the following applications information:
|
||||
* @Then the user API response should contain the following application information:
|
||||
*
|
||||
* @param TableNode $table
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function theResponseShouldContainTheFollowingApplicationsInformation(TableNode $table): void {
|
||||
public function theResponseShouldContainTheFollowingApplicationInformation(TableNode $table): void {
|
||||
Assert::assertIsArray($responseArray = ($this->featureContext->getJsonDecodedResponse($this->featureContext->getResponse()))['value'][0]);
|
||||
foreach ($table->getHash() as $row) {
|
||||
$key = $row["key"];
|
||||
@@ -1728,7 +1728,7 @@ class GraphContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then the user retrieve API response should contain the following app roles:
|
||||
* @Then the user API response should contain the following app roles:
|
||||
*
|
||||
* @param TableNode $table
|
||||
*
|
||||
|
||||
@@ -529,7 +529,7 @@ class PublicWebDavContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the public has uploaded file :filename" with password :password and content :body
|
||||
* @Given the public has uploaded file :filename with password :password and content :body
|
||||
*
|
||||
* @param string $filename target file name
|
||||
* @param string|null $password
|
||||
|
||||
Reference in New Issue
Block a user