1717use Illuminate \Database \Eloquent \Model ;
1818use Illuminate \Http \Request ;
1919use Illuminate \Http \Resources \MissingValue ;
20+ use PHPUnit \Framework \Attributes \DataProvider ;
2021use stdClass ;
2122use Test \Support \Reflect ;
2223use Test \TestCase ;
@@ -89,6 +90,7 @@ public static function modelsValues()
8990 /**
9091 * @dataProvider values
9192 */
93+ #[DataProvider('values ' )]
9294 public function testConvertValue ($ class , $ value , $ excepted )
9395 {
9496 /** @var \Ark4ne\JsonApi\Descriptors\Values\Value $v */
@@ -99,6 +101,7 @@ public function testConvertValue($class, $value, $excepted)
99101 /**
100102 * @dataProvider modelsValues
101103 */
104+ #[DataProvider('modelsValues ' )]
102105 public function testValueFor ($ model , $ class , $ value , $ excepted )
103106 {
104107 data_set ($ model , 'attr ' , $ value );
@@ -114,6 +117,7 @@ public function testValueFor($model, $class, $value, $excepted)
114117 /**
115118 * @dataProvider modelsValues
116119 */
120+ #[DataProvider('modelsValues ' )]
117121 public function testValueForWithNull ($ model , $ class , $ value , $ excepted )
118122 {
119123 data_set ($ model , 'attr ' , null );
@@ -126,6 +130,7 @@ public function testValueForWithNull($model, $class, $value, $excepted)
126130 /**
127131 * @dataProvider modelsValues
128132 */
133+ #[DataProvider('modelsValues ' )]
129134 public function testValueForWithNullAndNonNullable ($ model , $ class , $ value , $ _ , $ excepted )
130135 {
131136 data_set ($ model , 'attr ' , null );
@@ -144,6 +149,7 @@ public function testValueForWithNullAndNonNullable($model, $class, $value, $_, $
144149 /**
145150 * @dataProvider models
146151 */
152+ #[DataProvider('models ' )]
147153 public function testWhenNoNull ($ model )
148154 {
149155 data_set ($ model , 'attr ' , null );
@@ -175,6 +181,7 @@ public function testWhenAppended()
175181 /**
176182 * @dataProvider models
177183 */
184+ #[DataProvider('models ' )]
178185 public function testWhenFilled (&$ model )
179186 {
180187 data_set ($ model , 'attr ' , null );
@@ -191,6 +198,7 @@ public function testWhenFilled(&$model)
191198 /**
192199 * @dataProvider models
193200 */
201+ #[DataProvider('models ' )]
194202 public function testUnless (&$ model )
195203 {
196204 data_set ($ model , 'attr ' , 'abc ' );
@@ -209,6 +217,7 @@ public function testUnless(&$model)
209217 /**
210218 * @dataProvider models
211219 */
220+ #[DataProvider('models ' )]
212221 public function testWhenInFields ($ model )
213222 {
214223 Fields::through ('test ' , function () use (&$ model ) {
0 commit comments