File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
src/Bridge/Doctrine/Orm/Filter Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ Feature: Boolean filter on collections
84
84
}
85
85
}
86
86
"""
87
+ And the JSON node "hydra:totalItems" should be equal to 15
87
88
88
89
Scenario : Get collection by dummyBoolean false
89
90
When I send a "GET" request to "/dummies?dummyBoolean=false"
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ Feature: Exists filter on collections
24
24
"maxItems": 0
25
25
},
26
26
"hydra:view": {
27
- "@id": {"pattern": "^/dummies\\?dummyBoolean[exists]=0"},
28
- "@type": {"pattern": "^hydra:PartialCollectionView$"}
27
+ "type": "object",
28
+ "properties": {
29
+ "@id": {"pattern": "^/dummies\\?dummyBoolean%5Bexists%5D=0$"},
30
+ "@type": {"pattern": "^hydra:PartialCollectionView$"}
31
+ }
29
32
}
30
33
}
31
34
}
@@ -51,8 +54,11 @@ Feature: Exists filter on collections
51
54
"minItems": 3
52
55
},
53
56
"hydra:view": {
54
- "@id": {"pattern": "^/dummies\\?dummyBoolean[exists]=1"},
55
- "@type": {"pattern": "^hydra:PartialCollectionView$"}
57
+ "type": "object",
58
+ "properties": {
59
+ "@id": {"pattern": "^/dummies\\?dummyBoolean%5Bexists%5D=1&page=1$"},
60
+ "@type": {"pattern": "^hydra:PartialCollectionView$"}
61
+ }
56
62
}
57
63
}
58
64
}
Original file line number Diff line number Diff line change 17
17
use Doctrine \ORM \Mapping \ClassMetadataInfo ;
18
18
use Doctrine \ORM \QueryBuilder ;
19
19
use Psr \Log \LoggerInterface ;
20
- use Symfony \Component \HttpFoundation \Request ;
21
20
use Symfony \Component \HttpFoundation \RequestStack ;
22
21
23
22
/**
You can’t perform that action at this time.
0 commit comments