@@ -108,7 +108,7 @@ public function tearDown(): void
108108 */
109109 public function testQuery (): void
110110 {
111- $ validator = new Documents ($ this ->attributes , []);
111+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
112112
113113 $ this ->assertEquals (true , $ validator ->isValid ([Query::equal ('$id ' , ['Iron Man ' , 'Ant Man ' ])]));
114114 $ this ->assertEquals (true , $ validator ->isValid ([Query::equal ('$id ' , ['Iron Man ' ])]));
@@ -138,7 +138,7 @@ public function testQuery(): void
138138 */
139139 public function testAttributeNotFound (): void
140140 {
141- $ validator = new Documents ($ this ->attributes , []);
141+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
142142
143143 $ response = $ validator ->isValid ([Query::equal ('name ' , ['Iron Man ' ])]);
144144 $ this ->assertEquals (false , $ response );
@@ -154,7 +154,7 @@ public function testAttributeNotFound(): void
154154 */
155155 public function testAttributeWrongType (): void
156156 {
157- $ validator = new Documents ($ this ->attributes , []);
157+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
158158
159159 $ response = $ validator ->isValid ([Query::equal ('title ' , [1776 ])]);
160160 $ this ->assertEquals (false , $ response );
@@ -166,7 +166,7 @@ public function testAttributeWrongType(): void
166166 */
167167 public function testQueryDate (): void
168168 {
169- $ validator = new Documents ($ this ->attributes , []);
169+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
170170
171171 $ response = $ validator ->isValid ([Query::greaterThan ('birthDay ' , '1960-01-01 10:10:10 ' )]);
172172 $ this ->assertEquals (true , $ response );
@@ -177,7 +177,7 @@ public function testQueryDate(): void
177177 */
178178 public function testQueryLimit (): void
179179 {
180- $ validator = new Documents ($ this ->attributes , []);
180+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
181181
182182 $ response = $ validator ->isValid ([Query::limit (25 )]);
183183 $ this ->assertEquals (true , $ response );
@@ -191,7 +191,7 @@ public function testQueryLimit(): void
191191 */
192192 public function testQueryOffset (): void
193193 {
194- $ validator = new Documents ($ this ->attributes , []);
194+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
195195
196196 $ response = $ validator ->isValid ([Query::offset (25 )]);
197197 $ this ->assertEquals (true , $ response );
@@ -205,7 +205,7 @@ public function testQueryOffset(): void
205205 */
206206 public function testQueryOrder (): void
207207 {
208- $ validator = new Documents ($ this ->attributes , []);
208+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
209209
210210 $ response = $ validator ->isValid ([Query::orderAsc ('title ' )]);
211211 $ this ->assertEquals (true , $ response );
@@ -225,7 +225,7 @@ public function testQueryOrder(): void
225225 */
226226 public function testQueryCursor (): void
227227 {
228- $ validator = new Documents ($ this ->attributes , []);
228+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
229229
230230 $ response = $ validator ->isValid ([Query::cursorAfter (new Document (['$id ' => 'asdf ' ]))]);
231231 $ this ->assertEquals (true , $ response );
@@ -255,7 +255,7 @@ public function testQueryGetByType(): void
255255 */
256256 public function testQueryEmpty (): void
257257 {
258- $ validator = new Documents ($ this ->attributes , []);
258+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
259259
260260 $ response = $ validator ->isValid ([Query::equal ('title ' , ['' ])]);
261261 $ this ->assertEquals (true , $ response );
@@ -284,7 +284,7 @@ public function testQueryEmpty(): void
284284 */
285285 public function testOrQuery (): void
286286 {
287- $ validator = new Documents ($ this ->attributes , []);
287+ $ validator = new Documents ($ this ->attributes , [], ' int ' );
288288
289289 $ this ->assertFalse ($ validator ->isValid (
290290 [Query::or (
0 commit comments