diff --git a/tests/acceptance/features/apiSharingNg/sharedByMe.feature b/tests/acceptance/features/apiSharingNg/sharedByMe.feature index 3df91b65d..b1f0e6529 100644 --- a/tests/acceptance/features/apiSharingNg/sharedByMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedByMe.feature @@ -21,9 +21,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -146,9 +146,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -270,9 +270,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "FolderToShare" with the following data: + And the JSON data of the response should contain resource "FolderToShare" with the following data: """ { "type": "object", @@ -395,9 +395,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -508,7 +508,7 @@ Feature: resources shared by user } } """ - And the JSON data of the response should contain file name "FolderToShare" with the following data: + And the JSON data of the response should contain resource "FolderToShare" with the following data: """ { "type": "object", @@ -626,9 +626,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -754,9 +754,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -881,9 +881,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "FolderToShare" with the following data: + And the JSON data of the response should contain resource "FolderToShare" with the following data: """ { "type": "object", @@ -1009,9 +1009,9 @@ Feature: resources shared by user | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Alice" lists the resources shared by her using the Graph API + When user "Alice" lists the shares shared by her using the Graph API Then the HTTP status code should be "200" - And the JSON data of the response should contain file name "textfile.txt" with the following data: + And the JSON data of the response should contain resource "textfile.txt" with the following data: """ { "type": "object", @@ -1122,7 +1122,7 @@ Feature: resources shared by user } } """ - And the JSON data of the response should contain file name "FolderToShare" with the following data: + And the JSON data of the response should contain resource "FolderToShare" with the following data: """ { "type": "object", diff --git a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature index 2969d80c3..64dc7f2fe 100644 --- a/tests/acceptance/features/apiSharingNg/sharedWithMe.feature +++ b/tests/acceptance/features/apiSharingNg/sharedWithMe.feature @@ -20,7 +20,7 @@ Feature: an user gets the resources shared to them | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Brian" lists the resources shared with him using the Graph API + When user "Brian" lists the shares shared with him using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match """ @@ -263,7 +263,7 @@ Feature: an user gets the resources shared to them | sharee | Brian | | shareType | user | | permissionsRole | Viewer | - When user "Brian" lists the resources shared with him using the Graph API + When user "Brian" lists the shares shared with him using the Graph API Then the HTTP status code should be "200" And the JSON data of the response should match """ diff --git a/tests/acceptance/features/bootstrap/GraphContext.php b/tests/acceptance/features/bootstrap/GraphContext.php index 4838a4513..b73ebbb6a 100644 --- a/tests/acceptance/features/bootstrap/GraphContext.php +++ b/tests/acceptance/features/bootstrap/GraphContext.php @@ -2507,7 +2507,7 @@ class GraphContext implements Context { } /** - * @When user :user lists the resources shared with him/her using the Graph API + * @When user :user lists the shares shared with him/her using the Graph API * * @param string $user * @@ -2527,7 +2527,7 @@ class GraphContext implements Context { } /** - * @When user :user lists the resources shared by him/her using the Graph API + * @When user :user lists the shares shared by him/her using the Graph API * * @param string $user * @@ -2547,7 +2547,7 @@ class GraphContext implements Context { } /** - * @Then /^the JSON data of the response should (not )?contain file name "([^"]*)" with the following data:?$/ + * @Then /^the JSON data of the response should (not )?contain resource "([^"]*)" with the following data:?$/ * * @param string $shouldOrNot (not| ) * @param string $fileName