@@ -30,7 +30,7 @@ public function testNoValidation(): void
30
30
31
31
$ result = $ this ->executeGraphQLRequest ($ query );
32
32
33
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
33
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
34
34
$ this ->assertTrue ($ result ['data ' ]['noValidation ' ]);
35
35
}
36
36
@@ -47,7 +47,7 @@ public function testSimpleValidationPasses(): void
47
47
48
48
$ result = $ this ->executeGraphQLRequest ($ query );
49
49
50
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
50
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
51
51
$ this ->assertTrue ($ result ['data ' ]['simpleValidation ' ]);
52
52
}
53
53
@@ -82,7 +82,7 @@ public function testLinkedConstraintsValidationPasses(): void
82
82
83
83
$ result = $ this ->executeGraphQLRequest ($ query );
84
84
85
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
85
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
86
86
$ this ->assertTrue ($ result ['data ' ]['linkedConstraintsValidation ' ]);
87
87
}
88
88
@@ -128,7 +128,7 @@ public function testCollectionValidationPasses(): void
128
128
129
129
$ result = $ this ->executeGraphQLRequest ($ query );
130
130
131
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
131
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
132
132
$ this ->assertTrue ($ result ['data ' ]['collectionValidation ' ]);
133
133
}
134
134
@@ -189,7 +189,7 @@ public function testCascadeValidationWithGroupsPasses(): void
189
189
190
190
$ result = $ this ->executeGraphQLRequest ($ query );
191
191
192
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
192
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
193
193
$ this ->assertTrue ($ result ['data ' ]['cascadeValidationWithGroups ' ]);
194
194
}
195
195
@@ -249,7 +249,7 @@ public function testExpressionVariablesAccessible(): void
249
249
250
250
$ result = $ this ->executeGraphQLRequest ($ query );
251
251
252
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
252
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
253
253
$ this ->assertTrue ($ result ['data ' ]['expressionVariablesValidation ' ]);
254
254
}
255
255
@@ -266,7 +266,7 @@ public function testAutoValidationAutoThrowPasses(): void
266
266
267
267
$ result = $ this ->executeGraphQLRequest ($ query );
268
268
269
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
269
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
270
270
$ this ->assertTrue ($ result ['data ' ]['autoValidationAutoThrow ' ]);
271
271
}
272
272
@@ -296,7 +296,7 @@ public function testAutoValidationNoThrowNoErrors(): void
296
296
$ query = 'mutation { autoValidationNoThrow(username: "Andrew") } ' ;
297
297
$ result = $ this ->executeGraphQLRequest ($ query );
298
298
299
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
299
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
300
300
$ this ->assertTrue (false === $ result ['data ' ]['autoValidationNoThrow ' ]);
301
301
}
302
302
@@ -309,7 +309,7 @@ public function testAutoValidationNoThrowHasErrors(): void
309
309
$ query = 'mutation { autoValidationNoThrow(username: "Tim") } ' ;
310
310
$ result = $ this ->executeGraphQLRequest ($ query );
311
311
312
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
312
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
313
313
$ this ->assertTrue (true === $ result ['data ' ]['autoValidationNoThrow ' ]);
314
314
}
315
315
@@ -341,7 +341,7 @@ public function testAutoValidationAutoThrowWithGroupsPasses(): void
341
341
342
342
$ result = $ this ->executeGraphQLRequest ($ query );
343
343
344
- $ this ->assertTrue ( empty ( $ result [ 'errors ' ]) );
344
+ $ this ->assertArrayNotHasKey ( 'errors ' , $ result );
345
345
$ this ->assertTrue ($ result ['data ' ]['autoValidationAutoThrowWithGroups ' ]);
346
346
}
347
347
0 commit comments