Skip to content

Commit 800c65f

Browse files
committed
test
1 parent 323f975 commit 800c65f

22 files changed

+369
-343
lines changed

behat.yml.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ default:
1111
- 'ApiPlatform\Core\Tests\Behat\HttpCacheContext'
1212
- 'ApiPlatform\Core\Tests\Behat\JsonApiContext'
1313
- 'ApiPlatform\Core\Tests\Behat\JsonHalContext'
14+
- 'ApiPlatform\Core\Tests\Behat\XmlContext'
1415
- 'Behat\MinkExtension\Context\MinkContext'
1516
- 'behatch:context:rest'
1617
filters:
@@ -45,6 +46,7 @@ postgres:
4546
- 'ApiPlatform\Core\Tests\Behat\HttpCacheContext'
4647
- 'ApiPlatform\Core\Tests\Behat\JsonApiContext'
4748
- 'ApiPlatform\Core\Tests\Behat\JsonHalContext'
49+
- 'ApiPlatform\Core\Tests\Behat\XmlContext'
4850
- 'Behat\MinkExtension\Context\MinkContext'
4951
- 'behatch:context:rest'
5052
filters:
@@ -64,6 +66,7 @@ mongodb:
6466
- 'ApiPlatform\Core\Tests\Behat\HttpCacheContext'
6567
- 'ApiPlatform\Core\Tests\Behat\JsonApiContext'
6668
- 'ApiPlatform\Core\Tests\Behat\JsonHalContext'
69+
- 'ApiPlatform\Core\Tests\Behat\XmlContext'
6770
- 'Behat\MinkExtension\Context\MinkContext'
6871
- 'behatch:context:rest'
6972
filters:
@@ -98,6 +101,7 @@ default-coverage:
98101
- 'ApiPlatform\Core\Tests\Behat\JsonApiContext'
99102
- 'ApiPlatform\Core\Tests\Behat\JsonHalContext'
100103
- 'ApiPlatform\Core\Tests\Behat\CoverageContext'
104+
- 'ApiPlatform\Core\Tests\Behat\XmlContext'
101105
- 'Behat\MinkExtension\Context\MinkContext'
102106
- 'behatch:context:rest'
103107

@@ -117,6 +121,7 @@ mongodb-coverage:
117121
- 'ApiPlatform\Core\Tests\Behat\JsonApiContext'
118122
- 'ApiPlatform\Core\Tests\Behat\JsonHalContext'
119123
- 'ApiPlatform\Core\Tests\Behat\CoverageContext'
124+
- 'ApiPlatform\Core\Tests\Behat\XmlContext'
120125
- 'Behat\MinkExtension\Context\MinkContext'
121126
- 'behatch:context:rest'
122127

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"symfony/http-foundation": "^4.4 || ^5.1",
2222
"symfony/http-kernel": "^4.4 || ^5.1",
2323
"symfony/property-access": "^3.4.19 || ^4.4 || ^5.1",
24-
"symfony/property-info": "^3.4 || ^4.4 || ^5.2.x-dev#516cbda5788a37f393df6f0dfd19c25eb926784b",
24+
"symfony/property-info": "^3.4 || ^4.4 || ^5.2.1",
2525
"symfony/serializer": "^4.4 || ^5.1",
2626
"symfony/web-link": "^4.4 || ^5.1",
2727
"willdurand/negotiation": "^2.0.3 || ^3.0"

features/doctrine/search_filter.feature

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Feature: Search filter on collections
1919
Given there is a DummyCar entity with related colors
2020
When I send a "GET" request to "/dummy_cars?colors.prop=red"
2121
Then the response status code should be 200
22-
And the JSON should be deep equal to:
22+
And the JSON should be equal to:
2323
"""
2424
{
2525
"@context": "/contexts/DummyCar",
@@ -81,25 +81,25 @@ Feature: Search filter on collections
8181
"hydra:mapping": [
8282
{
8383
"@type": "IriTemplateMapping",
84-
"variable": "availableAt[after]",
84+
"variable": "availableAt[before]",
8585
"property": "availableAt",
8686
"required": false
8787
},
8888
{
8989
"@type": "IriTemplateMapping",
90-
"variable": "availableAt[before]",
90+
"variable": "availableAt[strictly_before]",
9191
"property": "availableAt",
9292
"required": false
9393
},
9494
{
9595
"@type": "IriTemplateMapping",
96-
"variable": "availableAt[strictly_after]",
96+
"variable": "availableAt[after]",
9797
"property": "availableAt",
9898
"required": false
9999
},
100100
{
101101
"@type": "IriTemplateMapping",
102-
"variable": "availableAt[strictly_before]",
102+
"variable": "availableAt[strictly_after]",
103103
"property": "availableAt",
104104
"required": false
105105
},
@@ -111,44 +111,38 @@ Feature: Search filter on collections
111111
},
112112
{
113113
"@type": "IriTemplateMapping",
114-
"variable": "colors",
115-
"property": "colors",
116-
"required": false
117-
},
118-
{
119-
"@type": "IriTemplateMapping",
120-
"variable": "colors.prop",
121-
"property": "colors.prop",
114+
"variable": "foobar[]",
115+
"property": null,
122116
"required": false
123117
},
124118
{
125119
"@type": "IriTemplateMapping",
126-
"variable": "colors[]",
127-
"property": "colors",
120+
"variable": "foobargroups[]",
121+
"property": null,
128122
"required": false
129123
},
130124
{
131125
"@type": "IriTemplateMapping",
132-
"variable": "foobar[]",
126+
"variable": "foobargroups_override[]",
133127
"property": null,
134128
"required": false
135129
},
136130
{
137131
"@type": "IriTemplateMapping",
138-
"variable": "foobargroups[]",
139-
"property": null,
132+
"variable": "colors.prop",
133+
"property": "colors.prop",
140134
"required": false
141135
},
142136
{
143137
"@type": "IriTemplateMapping",
144-
"variable": "foobargroups_override[]",
145-
"property": null,
138+
"variable": "colors",
139+
"property": "colors",
146140
"required": false
147141
},
148142
{
149143
"@type": "IriTemplateMapping",
150-
"variable": "name",
151-
"property": "name",
144+
"variable": "colors[]",
145+
"property": "colors",
152146
"required": false
153147
},
154148
{
@@ -186,6 +180,12 @@ Feature: Search filter on collections
186180
"variable": "uuid[]",
187181
"property": "uuid",
188182
"required": false
183+
},
184+
{
185+
"@type": "IriTemplateMapping",
186+
"variable": "name",
187+
"property": "name",
188+
"required": false
189189
}
190190
]
191191
}
@@ -278,7 +278,6 @@ Feature: Search filter on collections
278278
Then the response status code should be 200
279279
And the response should be in JSON
280280
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
281-
And print last JSON response
282281
And the JSON should be valid according to this schema:
283282
"""
284283
{

features/graphql/introspection.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Feature: GraphQL introspection support
201201
Then the response status code should be 200
202202
And the response should be in JSON
203203
And the header "Content-Type" should be equal to "application/json"
204-
And the JSON should be deep equal to:
204+
And the JSON should be equal to:
205205
"""
206206
{
207207
"data": {

0 commit comments

Comments
 (0)