22
33namespace Tests ;
44
5+ use PHPUnit \Framework \Attributes \Test ;
56use Statamic \Migrator \ContentMigrator ;
67use Statamic \Migrator \YAML ;
78
@@ -48,7 +49,7 @@ private function migrateContent($content)
4849 return ContentMigrator::usingFieldset ('speaker ' )->migrateContent ($ content );
4950 }
5051
51- /** @test */
52+ #[Test]
5253 public function it_can_migrate_assets_fields ()
5354 {
5455 $ content = $ this
@@ -83,7 +84,7 @@ public function it_can_migrate_assets_fields()
8384 $ this ->assertEquals ($ expected , $ content );
8485 }
8586
86- /** @test */
87+ #[Test]
8788 public function it_can_migrate_assets_fields_without_container_url ()
8889 {
8990 $ this ->files ->put ($ this ->sitePath ('content/assets/main.yaml ' ), 'title: Main ' );
@@ -120,7 +121,7 @@ public function it_can_migrate_assets_fields_without_container_url()
120121 $ this ->assertEquals ($ expected , $ content );
121122 }
122123
123- /** @test */
124+ #[Test]
124125 public function it_can_migrate_date_field ()
125126 {
126127 $ content = $ this
@@ -162,7 +163,7 @@ public function it_can_migrate_date_field()
162163 $ this ->files ->delete ($ this ->sitePath ('settings/system.yaml ' ));
163164 }
164165
165- /** @test */
166+ #[Test]
166167 public function it_can_migrate_date_field_when_previous_timezone_was_not_utc ()
167168 {
168169 // -5-hour offset
@@ -210,7 +211,7 @@ public function it_can_migrate_date_field_when_previous_timezone_was_not_utc()
210211 $ this ->files ->delete ($ this ->sitePath ('settings/system.yaml ' ));
211212 }
212213
213- /** @test */
214+ #[Test]
214215 public function it_can_migrate_term_fields ()
215216 {
216217 $ content = $ this
@@ -244,10 +245,9 @@ public function it_can_migrate_term_fields()
244245 }
245246
246247 /**
247- * @test
248- *
249248 * @see https://github.com/statamic/cms/issues/3432
250- **/
249+ */
250+ #[Test]
251251 public function it_removes_empty_term_fields ()
252252 {
253253 $ this ->withoutExceptionHandling ();
@@ -323,7 +323,7 @@ private function termFields()
323323 ];
324324 }
325325
326- /** @test */
326+ #[Test]
327327 public function it_can_migrate_when_fieldset_has_fields_in_sections ()
328328 {
329329 $ content = $ this
@@ -364,7 +364,7 @@ public function it_can_migrate_when_fieldset_has_fields_in_sections()
364364 $ this ->assertEquals ($ expected , $ content );
365365 }
366366
367- /** @test */
367+ #[Test]
368368 public function it_can_migrate_when_fieldset_has_fields_at_top_level ()
369369 {
370370 $ content = $ this
@@ -389,7 +389,7 @@ public function it_can_migrate_when_fieldset_has_fields_at_top_level()
389389 $ this ->assertEquals ($ expected , $ content );
390390 }
391391
392- /** @test */
392+ #[Test]
393393 public function it_can_migrate_fields_within_replicators ()
394394 {
395395 $ content = $ this
@@ -467,7 +467,7 @@ public function it_can_migrate_fields_within_replicators()
467467 $ this ->assertEquals ($ expected , $ content );
468468 }
469469
470- /** @test */
470+ #[Test]
471471 public function it_can_migrate_fields_within_bards ()
472472 {
473473 $ content = $ this
@@ -552,7 +552,7 @@ public function it_can_migrate_fields_within_bards()
552552 $ this ->assertEquals ($ expected , $ content );
553553 }
554554
555- /** @test */
555+ #[Test]
556556 public function it_can_migrate_fields_within_grids ()
557557 {
558558 $ content = $ this
@@ -612,7 +612,7 @@ public function it_can_migrate_fields_within_grids()
612612 $ this ->assertEquals ($ expected , $ content );
613613 }
614614
615- /** @test */
615+ #[Test]
616616 public function it_can_migrate_fields_within_partials ()
617617 {
618618 $ content = $ this
@@ -692,7 +692,7 @@ public function it_can_migrate_fields_within_partials()
692692 $ this ->assertEquals ($ expected , $ content );
693693 }
694694
695- /** @test */
695+ #[Test]
696696 public function it_can_migrate_bards_with_no_sets ()
697697 {
698698 $ content = $ this
@@ -719,7 +719,7 @@ public function it_can_migrate_bards_with_no_sets()
719719 $ this ->assertEquals ($ expected , $ content );
720720 }
721721
722- /** @test */
722+ #[Test]
723723 public function it_can_migrate_link_it_fields ()
724724 {
725725 $ content = $ this
@@ -747,7 +747,7 @@ public function it_can_migrate_link_it_fields()
747747 $ this ->assertEquals ($ expected , $ content );
748748 }
749749
750- /** @test */
750+ #[Test]
751751 public function it_can_migrate_custom_layout ()
752752 {
753753 $ content = $ this ->migrateContent ([
@@ -763,7 +763,7 @@ public function it_can_migrate_custom_layout()
763763 $ this ->assertEquals ($ expected , $ content );
764764 }
765765
766- /** @test */
766+ #[Test]
767767 public function it_removes_default_layout ()
768768 {
769769 $ content = $ this ->migrateContent ([
@@ -778,7 +778,7 @@ public function it_removes_default_layout()
778778 $ this ->assertEquals ($ expected , $ content );
779779 }
780780
781- /** @test */
781+ #[Test]
782782 public function it_removes_custom_default_layout ()
783783 {
784784 $ this ->files ->put (base_path ('site/settings/theming.yaml ' ), 'default_layout: custom_default ' );
0 commit comments