17
17
use CloudCreativity \JsonApi \Testing \Tests \TestCase ;
18
18
use CloudCreativity \JsonApi \Testing \Tests \TestModel ;
19
19
use Illuminate \Support \Collection ;
20
+ use PHPUnit \Framework \Attributes \DataProvider ;
20
21
21
22
class FetchedManyTest extends TestCase
22
23
{
@@ -363,8 +364,8 @@ function ($post1, $post2, $post3) {
363
364
* @param bool $expected
364
365
* @param Closure $provider
365
366
* @return void
366
- * @dataProvider fetchedManyArrayProvider
367
367
*/
368
+ #[DataProvider('fetchedManyArrayProvider ' )]
368
369
public function testFetchedManyWithArray (bool $ expected , Closure $ provider ): void
369
370
{
370
371
$ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -383,8 +384,8 @@ public function testFetchedManyWithArray(bool $expected, Closure $provider): voi
383
384
* @param bool $expected
384
385
* @param Closure $provider
385
386
* @return void
386
- * @dataProvider fetchedManyArrayProvider
387
387
*/
388
+ #[DataProvider('fetchedManyArrayProvider ' )]
388
389
public function testFetchedManyWithObject (bool $ expected , Closure $ provider ): void
389
390
{
390
391
$ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -677,8 +678,8 @@ function ($post1, $post2, $post3) {
677
678
* @param bool $expected
678
679
* @param Closure $provider
679
680
* @return void
680
- * @dataProvider fetchedManyInOrderArrayProvider
681
681
*/
682
+ #[DataProvider('fetchedManyInOrderArrayProvider ' )]
682
683
public function testFetchedManyInOrderWithArray (bool $ expected , Closure $ provider ): void
683
684
{
684
685
$ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -697,8 +698,8 @@ public function testFetchedManyInOrderWithArray(bool $expected, Closure $provide
697
698
* @param bool $expected
698
699
* @param Closure $provider
699
700
* @return void
700
- * @dataProvider fetchedManyInOrderArrayProvider
701
701
*/
702
+ #[DataProvider('fetchedManyInOrderArrayProvider ' )]
702
703
public function testFetchedManyInOrderWithObject (bool $ expected , Closure $ provider ): void
703
704
{
704
705
$ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
@@ -879,8 +880,8 @@ function ($post1, $post2, $post3) {
879
880
* @param bool $expected
880
881
* @param Closure $provider
881
882
* @return void
882
- * @dataProvider fetchedManyExactArrayProvider
883
883
*/
884
+ #[DataProvider('fetchedManyExactArrayProvider ' )]
884
885
public function testFetchedManyExactWithArray (bool $ expected , Closure $ provider ): void
885
886
{
886
887
$ value = $ provider ($ this ->post1 , $ this ->post2 , $ this ->post3 );
0 commit comments