You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/main/attribute_resource.feature
+13-18
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
+
@php8
2
+
@v3
3
+
@!mysql
4
+
@!mongodb
1
5
Feature: Resource attributes
2
6
In order to use the Resource attribute
3
7
As a developer
4
8
I should be able to fetch data from a state provider
5
-
6
-
@php8
7
-
@v3
8
-
@!mysql
9
-
@!mongodb
9
+
10
10
Scenario: Retrieve a Resource collection
11
11
When I add "Content-Type" header equal to "application/ld+json"
12
12
And I send a "GET" request to "/attribute_resources"
@@ -36,11 +36,7 @@ Feature: Resource attributes
36
36
}
37
37
"""
38
38
39
-
@php8
40
-
@v3
41
-
@!mysql
42
-
@!mongodb
43
-
Scenario: Retrieve the first resource
39
+
Scenario: Retrieve the first resource
44
40
When I add "Content-Type" header equal to "application/ld+json"
45
41
And I send a "GET" request to "/attribute_resources/1"
46
42
Then the response status code should be 200
@@ -57,10 +53,6 @@ Feature: Resource attributes
57
53
}
58
54
"""
59
55
60
-
@php8
61
-
@v3
62
-
@!mysql
63
-
@!mongodb
64
56
Scenario: Retrieve the aliased resource
65
57
When I add "Content-Type" header equal to "application/ld+json"
66
58
And I send a "GET" request to "/dummy/1/attribute_resources/2"
@@ -80,10 +72,6 @@ Feature: Resource attributes
80
72
}
81
73
"""
82
74
83
-
@php8
84
-
@v3
85
-
@!mysql
86
-
@!mongodb
87
75
Scenario: Patch the aliased resource
88
76
When I add "Content-Type" header equal to "application/merge-patch+json"
89
77
And I send a "PATCH" request to "/dummy/1/attribute_resources/2" with body:
@@ -105,3 +93,10 @@ Feature: Resource attributes
105
93
"name": "Patched"
106
94
}
107
95
"""
96
+
97
+
Scenario: Uri variables should be configured properly
98
+
When I send a "GET" request to "/photos/1/resize/300/100"
99
+
Then the response status code should be 400
100
+
And the response should be in JSON
101
+
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
102
+
And the JSON node "hydra:description" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
0 commit comments