77use Fureev \Trees \Tests \Functional \Helpers \InstallMigration ;
88use Fureev \Trees \Tests \Functional \Helpers \StructureHelper ;
99use Fureev \Trees \Tests \models \SoftDeleteStructure ;
10+ use PHPUnit \Framework \Attributes \Test ;
1011
1112class SoftDeleteStructureTest extends AbstractFunctionalTestCase
1213{
@@ -19,9 +20,7 @@ protected function setUp(): void
1920 (new InstallMigration (SoftDeleteStructure::class))->install ();
2021 }
2122
22- /**
23- * @test
24- */
23+ #[Test]
2524 public function createOnlyRootAndThenDeleteIt (): void
2625 {
2726 $ root = $ this ->createSoftDeleteStructure ();
@@ -49,9 +48,7 @@ public function createOnlyRootAndThenDeleteIt(): void
4948 }
5049
5150
52- /**
53- * @test
54- */
51+ #[Test]
5552 public function createSoftDeleteStructures (): void
5653 {
5754 $ root = $ this ->createSoftDeleteStructure ();
@@ -116,9 +113,7 @@ public function createSoftDeleteStructures(): void
116113 static ::assertEquals (0 , $ structure2 ->children ()->count ());
117114 }
118115
119- /**
120- * @test
121- */
116+ #[Test]
122117 public function moveInstance (): void
123118 {
124119 $ root = $ this ->createSoftDeleteStructure ();
@@ -150,9 +145,7 @@ public function moveInstance(): void
150145 static ::assertEquals (5 , SoftDeleteStructure::count ());
151146 }
152147
153- /**
154- * @test
155- */
148+ #[Test]
156149 public function deleteNodes (): void
157150 {
158151 $ root = $ this ->createSoftDeleteStructure ();
@@ -189,9 +182,7 @@ public function deleteNodes(): void
189182 }
190183
191184
192- /**
193- * @test
194- */
185+ #[Test]
195186 public function deleteAndRestoreNodes (): void
196187 {
197188 $ root = $ this ->createSoftDeleteStructure ();
@@ -264,9 +255,7 @@ public function deleteAndRestoreNodes(): void
264255 static ::assertEquals (5 , SoftDeleteStructure::withTrashed ()->count ());
265256 }
266257
267- /**
268- * @test
269- */
258+ #[Test]
270259 public function restoreParentsNodes (): void
271260 {
272261 $ root = $ this ->createSoftDeleteStructure ();
0 commit comments