@@ -2,6 +2,7 @@ Feature: Uri Variables
2
2
3
3
@createSchema
4
4
@php8
5
+ @v3
5
6
Scenario : Create a resource Company
6
7
When I add "Content-Type" header equal to "application/ld+json"
7
8
And I send a "POST" request to "/companies" with body:
@@ -28,6 +29,7 @@ Feature: Uri Variables
28
29
"""
29
30
30
31
@php8
32
+ @v3
31
33
Scenario : Create a second resource Company
32
34
When I add "Content-Type" header equal to "application/ld+json"
33
35
And I send a "POST" request to "/companies" with body:
@@ -39,6 +41,7 @@ Feature: Uri Variables
39
41
Then the response status code should be 201
40
42
41
43
@php8
44
+ @v3
42
45
Scenario : Create first Employee
43
46
When I add "Content-Type" header equal to "application/ld+json"
44
47
And I send a "POST" request to "/employees" with body:
@@ -66,6 +69,7 @@ Feature: Uri Variables
66
69
"""
67
70
68
71
@php8
72
+ @v3
69
73
Scenario : Create second Employee
70
74
When I add "Content-Type" header equal to "application/ld+json"
71
75
And I send a "POST" request to "/employees" with body:
@@ -78,6 +82,7 @@ Feature: Uri Variables
78
82
Then the response status code should be 201
79
83
80
84
@php8
85
+ @v3
81
86
Scenario : Create third Employee
82
87
When I add "Content-Type" header equal to "application/ld+json"
83
88
And I send a "POST" request to "/employees" with body:
@@ -90,6 +95,7 @@ Feature: Uri Variables
90
95
Then the response status code should be 201
91
96
92
97
@php8
98
+ @v3
93
99
Scenario : Retrieve the collection of employees
94
100
When I add "Content-Type" header equal to "application/ld+json"
95
101
And I send a "GET" request to "/companies/2/employees"
@@ -152,6 +158,7 @@ Feature: Uri Variables
152
158
And the JSON node "data.companies.edges[1].node.employees.edges[1].node.name" should be equal to "foo3"
153
159
154
160
@php8
161
+ @v3
155
162
Scenario : Retrieve the company of an employee
156
163
When I add "Content-Type" header equal to "application/ld+json"
157
164
And I send a "GET" request to "/employees/1/company"
@@ -171,6 +178,7 @@ Feature: Uri Variables
171
178
"""
172
179
173
180
@php8
181
+ @v3
174
182
Scenario : Retrieve an employee
175
183
When I add "Content-Type" header equal to "application/ld+json"
176
184
And I send a "GET" request to "/companies/1/employees/1"
@@ -190,6 +198,7 @@ Feature: Uri Variables
190
198
"""
191
199
192
200
@php8
201
+ @v3
193
202
Scenario : Trying to get an employee of wrong company
194
203
When I add "Content-Type" header equal to "application/ld+json"
195
204
And I send a "GET" request to "/companies/1/employees/2"
0 commit comments