Skip to content

Commit 17fa743

Browse files
committed
test(metadata)!: order filter must have a value
1 parent b629a01 commit 17fa743

File tree

1 file changed

+1
-56
lines changed

1 file changed

+1
-56
lines changed

features/doctrine/order_filter.feature

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -423,62 +423,7 @@ Feature: Order filter on collections
423423

424424
Scenario: Get collection ordered by default configured order on a embedded string property and on which order filter has been enabled in whitelist mode with default descending order
425425
When I send a "GET" request to "/embedded_dummies?order[embeddedDummy.dummyName]"
426-
Then the response status code should be 200
427-
And the response should be in JSON
428-
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
429-
And the JSON should be valid according to this schema:
430-
"""
431-
{
432-
"type": "object",
433-
"properties": {
434-
"@context": {"pattern": "^/contexts/EmbeddedDummy$"},
435-
"@id": {"pattern": "^/embedded_dummies$"},
436-
"@type": {"pattern": "^hydra:Collection$"},
437-
"hydra:member": {
438-
"type": "array",
439-
"items": [
440-
{
441-
"type": "object",
442-
"properties": {
443-
"@id": {
444-
"type": "string",
445-
"pattern": "^/embedded_dummies/9"
446-
}
447-
}
448-
},
449-
{
450-
"type": "object",
451-
"properties": {
452-
"@id": {
453-
"type": "string",
454-
"pattern": "^/embedded_dummies/8"
455-
}
456-
}
457-
},
458-
{
459-
"type": "object",
460-
"properties": {
461-
"@id": {
462-
"type": "string",
463-
"pattern": "^/embedded_dummies/7"
464-
}
465-
}
466-
}
467-
],
468-
"additionalItems": false,
469-
"maxItems": 3,
470-
"minItems": 3
471-
},
472-
"hydra:view": {
473-
"type": "object",
474-
"properties": {
475-
"@id": {"pattern": "^/embedded_dummies\\?order%5BembeddedDummy\\.dummyName%5D="},
476-
"@type": {"pattern": "^hydra:PartialCollectionView$"}
477-
}
478-
}
479-
}
480-
}
481-
"""
426+
Then the response status code should be 422
482427

483428
Scenario: Get collection ordered by a non valid properties and on which order filter has been enabled in whitelist mode
484429
When I send a "GET" request to "/dummies?order[alias]=asc"

0 commit comments

Comments
 (0)