@@ -142,13 +142,13 @@ public function testSearchFilterByInvalidUuid(): void
142142 $ manager ->persist ($ this ->createDevice ());
143143 $ manager ->flush ();
144144
145- $ response = self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_devices ' , [
145+ self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_devices ' , [
146146 'query ' => [
147147 'id ' => 'invalid-uuid ' ,
148148 ],
149149 ]);
150150
151- $ this -> assertResponseStatusCodeSame (Response::HTTP_BAD_REQUEST );
151+ self :: assertResponseStatusCodeSame (Response::HTTP_UNPROCESSABLE_ENTITY );
152152 }
153153
154154 public function testSearchFilterByManyInvalidUuid (): void
@@ -160,13 +160,13 @@ public function testSearchFilterByManyInvalidUuid(): void
160160 $ manager ->persist ($ this ->createDevice ());
161161 $ manager ->flush ();
162162
163- $ response = self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_devices ' , [
163+ self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_devices ' , [
164164 'query ' => [
165165 'id ' => ['invalid-uuid ' , 'other-invalid-uuid ' ],
166166 ],
167167 ]);
168168
169- $ this -> assertResponseStatusCodeSame (Response::HTTP_BAD_REQUEST );
169+ self :: assertResponseStatusCodeSame (Response::HTTP_UNPROCESSABLE_ENTITY );
170170 }
171171
172172 public function testSearchFilterOnManyToOneRelationByUuid (): void
@@ -262,7 +262,7 @@ public function testSearchFilterOnManyToOneRelationByInvalidUuids(): void
262262 $ manager ->persist ($ this ->createDeviceEndpoint (null , $ bazDevice ));
263263 $ manager ->flush ();
264264
265- $ response = self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_device_endpoints ' , [
265+ self ::createClient ()->request ('GET ' , '/ ' .$ this ->getUrlPrefix ().'_device_endpoints ' , [
266266 'query ' => [
267267 'myDevice ' => [
268268 'invalid-uuid ' ,
@@ -271,7 +271,7 @@ public function testSearchFilterOnManyToOneRelationByInvalidUuids(): void
271271 ],
272272 ]);
273273
274- $ this -> assertResponseStatusCodeSame (Response::HTTP_BAD_REQUEST );
274+ self :: assertResponseStatusCodeSame (Response::HTTP_UNPROCESSABLE_ENTITY );
275275 }
276276
277277 public function testGetOpenApiDescription (): void
0 commit comments