44
55namespace Pagemachine \FlatUrls \Tests \Functional \Hook \DataHandler ;
66
7+ use PHPUnit \Framework \Attributes \Test ;
78use TYPO3 \CMS \Core \Cache \CacheManager ;
89use TYPO3 \CMS \Core \Configuration \SiteConfiguration ;
910use TYPO3 \CMS \Core \Configuration \SiteWriter ;
@@ -26,9 +27,7 @@ final class ResolveRedirectConflictTest extends FunctionalTestCase
2627 'pagemachine/typo3-flat-urls ' ,
2728 ];
2829
29- /**
30- * @test
31- */
30+ #[Test]
3231 public function resolvesPagePathRedirectConflicts (): void
3332 {
3433 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/be_users.csv ' );
@@ -106,9 +105,7 @@ public function resolvesPagePathRedirectConflicts(): void
106105 self ::assertSame ('t3://page?uid=2 ' , $ redirects [1 ]['target ' ] ?? null );
107106 }
108107
109- /**
110- * @test
111- */
108+ #[Test]
112109 public function normalizesPagePath (): void
113110 {
114111 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/be_users.csv ' );
@@ -189,9 +186,7 @@ public function normalizesPagePath(): void
189186 self ::assertSame ('t3://page?uid=2 ' , $ redirects [0 ]['target ' ] ?? null );
190187 }
191188
192- /**
193- * @test
194- */
189+ #[Test]
195190 public function resolvesUidRedirectConflicts (): void
196191 {
197192 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/be_users.csv ' );
@@ -230,9 +225,7 @@ public function resolvesUidRedirectConflicts(): void
230225 self ::assertEquals (0 , $ redirectConnection ->count ('* ' , 'sys_redirect ' , []));
231226 }
232227
233- /**
234- * @test
235- */
228+ #[Test]
236229 public function skipsPagesWithoutSite (): void
237230 {
238231 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/be_users.csv ' );
@@ -264,9 +257,7 @@ public function skipsPagesWithoutSite(): void
264257 self ::assertEquals (0 , $ redirectConnection ->count ('* ' , 'sys_redirect ' , []));
265258 }
266259
267- /**
268- * @test
269- */
260+ #[Test]
270261 public function skipsInactivePages (): void
271262 {
272263 $ this ->importCSVDataSet (__DIR__ . '/../../Fixtures/be_users.csv ' );
0 commit comments