File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -60,23 +60,23 @@ Feature: Interacting with the REST API for groups
6060 @group
6161 Scenario : Listing names of all groups
6262 Given I have a "NativeCurlClient" client
63- And I create a group with name "Test Group 1 "
64- And I create a group with name "Test Group 2 "
65- And I create a group with name "Test Group 3 "
66- And I create a group with name "Test Group 4 "
67- And I create a group with name "Test Group 5 "
63+ And I create a group with name "Test Group D "
64+ And I create a group with name "Test Group E "
65+ And I create a group with name "Test Group C "
66+ And I create a group with name "Test Group B "
67+ And I create a group with name "Test Group A "
6868 When I list the names of all groups
6969 Then the response has the status code "200"
7070 And the response has the content type "application/json"
7171 And the returned data is an array
7272 And the returned data contains "5" items
7373 And the returned data contains the following data
7474 | property | value |
75- | 4 | Test Group 1 |
76- | 5 | Test Group 2 |
77- | 6 | Test Group 3 |
78- | 7 | Test Group 4 |
79- | 8 | Test Group 5 |
75+ | 4 | Test Group D |
76+ | 5 | Test Group E |
77+ | 6 | Test Group C |
78+ | 7 | Test Group B |
79+ | 8 | Test Group A |
8080
8181 @group
8282 Scenario : Showing a specific group
Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ public static function getListNamesData(): array
5858 <<<JSON
5959 {
6060 "groups": [
61- {"id": 9 , "name": "Group 1 "},
61+ {"id": 7 , "name": "Group 3 "},
6262 {"id": 8, "name": "Group 2"},
63- {"id": 7 , "name": "Group 3 "}
63+ {"id": 9 , "name": "Group 1 "}
6464 ]
6565 }
6666 JSON ,
6767 [
68- 9 => "Group 1 " ,
69- 8 => "Group 2 " ,
7068 7 => "Group 3 " ,
69+ 8 => "Group 2 " ,
70+ 9 => "Group 1 " ,
7171 ],
7272 ],
7373 ];
You can’t perform that action at this time.
0 commit comments