33namespace Tests \Commands ;
44
55use Illuminate \Support \Facades \Facade ;
6+ use PHPUnit \Framework \Attributes \Test ;
67use Statamic \Contracts \Globals \GlobalRepository as GlobalRepositoryContract ;
78use Statamic \Contracts \Globals \GlobalSet as GlobalSetContract ;
89use Statamic \Contracts \Globals \GlobalVariablesRepository as GlobalVariablesRepositoryContract ;
@@ -30,7 +31,7 @@ public function setUp(): void
3031 app ()->bind (GlobalVariablesRepositoryContract::class, \Statamic \Stache \Repositories \GlobalVariablesRepository::class);
3132 }
3233
33- /** @test */
34+ #[Test]
3435 public function it_imports_global_sets_and_variables ()
3536 {
3637 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
@@ -53,7 +54,7 @@ public function it_imports_global_sets_and_variables()
5354 $ this ->assertDatabaseHas ('global_set_variables ' , ['handle ' => 'footer ' , 'locale ' => 'en ' , 'data ' => '{"foo":"bar"} ' ]);
5455 }
5556
56- /** @test */
57+ #[Test]
5758 public function it_imports_global_sets_and_variables_with_force_argument ()
5859 {
5960 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
@@ -74,7 +75,7 @@ public function it_imports_global_sets_and_variables_with_force_argument()
7475 $ this ->assertDatabaseHas ('global_set_variables ' , ['handle ' => 'footer ' , 'locale ' => 'en ' , 'data ' => '{"foo":"bar"} ' ]);
7576 }
7677
77- /** @test */
78+ #[Test]
7879 public function it_imports_only_global_sets_with_console_question ()
7980 {
8081 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
@@ -97,7 +98,7 @@ public function it_imports_only_global_sets_with_console_question()
9798 $ this ->assertDatabaseMissing ('global_set_variables ' , ['handle ' => 'footer ' , 'locale ' => 'en ' , 'data ' => '{"foo":"bar"} ' ]);
9899 }
99100
100- /** @test */
101+ #[Test]
101102 public function it_imports_only_global_sets_with_only_global_sets_argument ()
102103 {
103104 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
@@ -118,7 +119,7 @@ public function it_imports_only_global_sets_with_only_global_sets_argument()
118119 $ this ->assertDatabaseMissing ('global_set_variables ' , ['handle ' => 'footer ' , 'locale ' => 'en ' , 'data ' => '{"foo":"bar"} ' ]);
119120 }
120121
121- /** @test */
122+ #[Test]
122123 public function it_imports_only_variables_with_console_question ()
123124 {
124125 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
@@ -141,7 +142,7 @@ public function it_imports_only_variables_with_console_question()
141142 $ this ->assertDatabaseHas ('global_set_variables ' , ['handle ' => 'footer ' , 'locale ' => 'en ' , 'data ' => '{"foo":"bar"} ' ]);
142143 }
143144
144- /** @test */
145+ #[Test]
145146 public function it_imports_only_variables_with_only_global_variables_argument ()
146147 {
147148 $ globalSet = tap (GlobalSet::make ('footer ' )->title ('Footer ' ))->save ();
0 commit comments