@@ -890,94 +890,6 @@ Feature: Order filter on collections
890
890
Then the response status code should be 200
891
891
And the response should be in JSON
892
892
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
893
- And the JSON should be equal to:
894
- """
895
- {
896
- "@context": "/contexts/ConvertedInteger",
897
- "@id": "/converted_integers",
898
- "@type": "hydra:Collection",
899
- "hydra:member": [
900
- {
901
- "@id": "/converted_integers/3",
902
- "@type": "ConvertedInteger",
903
- "name_converted": 3,
904
- "id": 3
905
- },
906
- {
907
- "@id": "/converted_integers/2",
908
- "@type": "ConvertedInteger",
909
- "name_converted": 2,
910
- "id": 2
911
- },
912
- {
913
- "@id": "/converted_integers/1",
914
- "@type": "ConvertedInteger",
915
- "name_converted": 1,
916
- "id": 1
917
- }
918
- ],
919
- "hydra:totalItems": 3,
920
- "hydra:view": {
921
- "@id": "/converted_integers?order%5Bname_converted%5D=desc",
922
- "@type": "hydra:PartialCollectionView"
923
- },
924
- "hydra:search": {
925
- "@type": "hydra:IriTemplate",
926
- "hydra:template": "/converted_integers{?name_converted,name_converted[],name_converted[between],name_converted[gt],name_converted[gte],name_converted[lt],name_converted[lte],order[name_converted]}",
927
- "hydra:variableRepresentation": "BasicRepresentation",
928
- "hydra:mapping": [
929
- {
930
- "@type": "IriTemplateMapping",
931
- "variable": "name_converted",
932
- "property": "name_converted",
933
- "required": false
934
- },
935
- {
936
- "@type": "IriTemplateMapping",
937
- "variable": "name_converted[]",
938
- "property": "name_converted",
939
- "required": false
940
- },
941
- {
942
- "@type": "IriTemplateMapping",
943
- "variable": "name_converted[between]",
944
- "property": "name_converted",
945
- "required": false
946
- },
947
- {
948
- "@type": "IriTemplateMapping",
949
- "variable": "name_converted[gt]",
950
- "property": "name_converted",
951
- "required": false
952
- },
953
- {
954
- "@type": "IriTemplateMapping",
955
- "variable": "name_converted[gte]",
956
- "property": "name_converted",
957
- "required": false
958
- },
959
- {
960
- "@type": "IriTemplateMapping",
961
- "variable": "name_converted[lt]",
962
- "property": "name_converted",
963
- "required": false
964
- },
965
- {
966
- "@type": "IriTemplateMapping",
967
- "variable": "name_converted[lte]",
968
- "property": "name_converted",
969
- "required": false
970
- },
971
- {
972
- "@type": "IriTemplateMapping",
973
- "variable": "order[name_converted]",
974
- "property": "name_converted",
975
- "required": false
976
- }
977
- ]
978
- }
979
- }
980
- """
981
893
And the JSON should be valid according to this schema:
982
894
"""
983
895
{
0 commit comments