1717use CloudCreativity \JsonApi \Testing \Tests \TestCase ;
1818use CloudCreativity \JsonApi \Testing \Tests \TestModel ;
1919use Illuminate \Support \Collection ;
20+ use PHPUnit \Framework \Attributes \DataProvider ;
2021
2122class FetchedManyTest extends TestCase
2223{
@@ -363,8 +364,8 @@ function ($post1, $post2, $post3) {
363364 * @param bool $expected
364365 * @param Closure $provider
365366 * @return void
366- * @dataProvider fetchedManyArrayProvider
367367 */
368+ #[DataProvider('fetchedManyArrayProvider ' )]
368369 public function testFetchedManyWithArray (bool $ expected , Closure $ provider ): void
369370 {
370371 $ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -383,8 +384,8 @@ public function testFetchedManyWithArray(bool $expected, Closure $provider): voi
383384 * @param bool $expected
384385 * @param Closure $provider
385386 * @return void
386- * @dataProvider fetchedManyArrayProvider
387387 */
388+ #[DataProvider('fetchedManyArrayProvider ' )]
388389 public function testFetchedManyWithObject (bool $ expected , Closure $ provider ): void
389390 {
390391 $ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -677,8 +678,8 @@ function ($post1, $post2, $post3) {
677678 * @param bool $expected
678679 * @param Closure $provider
679680 * @return void
680- * @dataProvider fetchedManyInOrderArrayProvider
681681 */
682+ #[DataProvider('fetchedManyInOrderArrayProvider ' )]
682683 public function testFetchedManyInOrderWithArray (bool $ expected , Closure $ provider ): void
683684 {
684685 $ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -697,8 +698,8 @@ public function testFetchedManyInOrderWithArray(bool $expected, Closure $provide
697698 * @param bool $expected
698699 * @param Closure $provider
699700 * @return void
700- * @dataProvider fetchedManyInOrderArrayProvider
701701 */
702+ #[DataProvider('fetchedManyInOrderArrayProvider ' )]
702703 public function testFetchedManyInOrderWithObject (bool $ expected , Closure $ provider ): void
703704 {
704705 $ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -879,8 +880,8 @@ function ($post1, $post2, $post3) {
879880 * @param bool $expected
880881 * @param Closure $provider
881882 * @return void
882- * @dataProvider fetchedManyExactArrayProvider
883883 */
884+ #[DataProvider('fetchedManyExactArrayProvider ' )]
884885 public function testFetchedManyExactWithArray (bool $ expected , Closure $ provider ): void
885886 {
886887 $ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
0 commit comments