88use Javaabu \QueryBuilder \Tests \Models \Brand ;
99use Javaabu \QueryBuilder \Tests \Models \Product ;
1010use Javaabu \QueryBuilder \Tests \TestCase ;
11+ use PHPUnit \Framework \Attributes \Test ;
1112
1213class ApiControllerTest extends TestCase
1314{
@@ -28,7 +29,7 @@ protected function registerApiRoutes()
2829 Route::get ('/products/{id} ' , [ProductsController::class, 'show ' ])->name ('products.show ' );
2930 }
3031
31- /** @test */
32+ #[Test]
3233 public function it_can_list_api_models (): void
3334 {
3435 $ products = Product::factory ()->count (10 )->create ();
@@ -37,7 +38,7 @@ public function it_can_list_api_models(): void
3738 ->assertSuccessful ();
3839 }
3940
40- /** @test */
41+ #[Test]
4142 public function it_can_show_api_models (): void
4243 {
4344 $ product = Product::factory ()->create ();
@@ -49,7 +50,7 @@ public function it_can_show_api_models(): void
4950 ]);
5051 }
5152
52- /** @test */
53+ #[Test]
5354 public function it_can_filter_api_models (): void
5455 {
5556 $ product_1 = Product::factory ()->create ([
@@ -70,7 +71,7 @@ public function it_can_filter_api_models(): void
7071 ]);
7172 }
7273
73- /** @test */
74+ #[Test]
7475 public function it_can_load_api_model_relations (): void
7576 {
7677 $ this ->withoutExceptionHandling ();
@@ -91,7 +92,7 @@ public function it_can_load_api_model_relations(): void
9192 ]);
9293 }
9394
94- /** @test */
95+ #[Test]
9596 public function it_can_load_api_model_appends (): void
9697 {
9798 $ this ->withoutExceptionHandling ();
@@ -111,7 +112,7 @@ public function it_can_load_api_model_appends(): void
111112 ]);
112113 }
113114
114- /** @test */
115+ #[Test]
115116 public function it_can_list_only_specific_api_model_fields (): void
116117 {
117118 $ this ->withoutExceptionHandling ();
@@ -131,7 +132,7 @@ public function it_can_list_only_specific_api_model_fields(): void
131132 ]);
132133 }
133134
134- /** @test */
135+ #[Test]
135136 public function it_can_load_api_model_appends_from_fields_even_if_appends_is_blank (): void
136137 {
137138 $ this ->withoutExceptionHandling ();
0 commit comments