3333use ApiPlatform \Tests \RecreateSchemaTrait ;
3434use ApiPlatform \Tests \SetupClassResourcesTrait ;
3535use Doctrine \ORM \EntityManagerInterface ;
36+ use PHPUnit \Framework \Attributes \Group ;
3637use PHPUnit \Framework \ExpectationFailedException ;
3738use Symfony \Component \HttpKernel \KernelInterface ;
3839
@@ -161,7 +162,7 @@ public function testAssertMatchesResourceCollectionJsonSchema(string $format, st
161162 }
162163
163164 #[\PHPUnit \Framework \Attributes \DataProvider('providerFormats ' )]
164- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
165+ #[Group('orm ' )]
165166 public function testAssertMatchesResourceCollectionJsonSchemaKeepSerializationContext (string $ format , string $ mimeType ): void
166167 {
167168 $ this ->recreateSchema ([Issue6146Parent::class, Issue6146Child::class]);
@@ -202,7 +203,7 @@ public function testAssertMatchesResourceItemJsonSchemaWithCustomOutput(string $
202203 }
203204
204205 #[\PHPUnit \Framework \Attributes \DataProvider('providerFormats ' )]
205- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
206+ #[Group('orm ' )]
206207 public function testAssertMatchesResourceItemJsonSchemaWithCustomJson (string $ format , string $ mimeType ): void
207208 {
208209 $ this ->recreateSchema ([JsonSchemaContextDummy::class]);
@@ -218,7 +219,7 @@ public function testAssertMatchesResourceItemJsonSchemaWithCustomJson(string $fo
218219 }
219220
220221 #[\PHPUnit \Framework \Attributes \DataProvider('providerFormats ' )]
221- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
222+ #[Group('orm ' )]
222223 public function testAssertMatchesResourceItemJsonSchemaOutput (string $ format , string $ mimeType ): void
223224 {
224225 $ this ->recreateSchema ([DummyDtoInputOutput::class]);
@@ -235,7 +236,7 @@ public function testAssertMatchesResourceItemJsonSchemaOutput(string $format, st
235236 }
236237
237238 #[\PHPUnit \Framework \Attributes \DataProvider('providerFormats ' )]
238- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
239+ #[Group('orm ' )]
239240 public function testAssertMatchesResourceItemAndCollectionJsonSchemaOutputWithContext (string $ format , string $ mimeType ): void
240241 {
241242 $ this ->recreateSchema ([User::class]);
@@ -256,7 +257,7 @@ public function testAssertMatchesResourceItemAndCollectionJsonSchemaOutputWithCo
256257 $ this ->assertMatchesResourceCollectionJsonSchema (User::class, null , $ format , ['groups ' => ['api-test-case-group ' ]]);
257258 }
258259
259- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
260+ #[Group('orm ' )]
260261 public function testAssertMatchesResourceItemAndCollectionJsonSchemaOutputWithRangeAssertions (): void
261262 {
262263 $ this ->recreateSchema ([NumericValidated::class]);
@@ -297,7 +298,7 @@ public function testAssertArraySubsetDoesNothingForValidScenario(): void
297298 $ this ->assertArraySubset ([1 , 2 ], [1 , 2 , 3 ]);
298299 }
299300
300- #[\ PHPUnit \ Framework \ Attributes \ Group('orm ' )]
301+ #[Group('orm ' )]
301302 public function testFindIriBy (): void
302303 {
303304 $ this ->recreateSchema ([Dummy::class, RelatedOwnedDummy::class, RelatedDummy::class]);
@@ -325,7 +326,7 @@ public function testGetPrioritizedOperation(): void
325326 $ this ->assertResponseIsSuccessful ();
326327 }
327328
328- #[\ PHPUnit \ Framework \ Attributes \ Group('mercure ' )]
329+ #[Group('mercure ' )]
329330 public function testGetMercureMessages (): void
330331 {
331332 self ::bootKernel (['environment ' => 'mercure ' ]);
0 commit comments