@@ -42,10 +42,8 @@ protected function setUp(): void
4242 $ GLOBALS ['TYPO3_REQUEST ' ] = $ serverRequest ;
4343 }
4444
45- /**
46- * @test
47- * @dataProvider dotIsRemovedFromEndDataProvider
48- */
45+ #[\PHPUnit \Framework \Attributes \Test]
46+ #[\PHPUnit \Framework \Attributes \DataProvider('dotIsRemovedFromEndDataProvider ' )]
4947 public function dotIsRemovedFromEnd ($ given , $ expected )
5048 {
5149 $ subject = $ this ->getAccessibleMock (AddressController::class, null , [], '' , false );
@@ -60,9 +58,7 @@ public static function dotIsRemovedFromEndDataProvider(): array
6058 ];
6159 }
6260
63- /**
64- * @test
65- */
61+ #[\PHPUnit \Framework \Attributes \Test]
6662 public function dotsAreRemovedFromArray ()
6763 {
6864 $ subject = $ this ->getAccessibleMock (AddressController::class, null , [], '' , false );
@@ -87,9 +83,7 @@ public function dotsAreRemovedFromArray()
8783 self ::assertEquals ($ expected , $ subject ->_call ('removeDots ' , $ given ));
8884 }
8985
90- /**
91- * @test
92- */
86+ #[\PHPUnit \Framework \Attributes \Test]
9387 public function injectAddressRepositoryWorks ()
9488 {
9589 $ mockedRepository = $ this ->getAccessibleMock (AddressRepository::class, null , [], '' , false );
@@ -100,9 +94,7 @@ public function injectAddressRepositoryWorks()
10094 self ::assertEquals ($ mockedRepository , $ subject ->_get ('addressRepository ' ));
10195 }
10296
103- /**
104- * @test
105- */
97+ #[\PHPUnit \Framework \Attributes \Test]
10698 public function pidListIsReturned ()
10799 {
108100 $ mockedPageRepsitory = $ this ->getAccessibleMock (PageRepository::class, ['getPageIdsRecursive ' ], [], '' , false );
@@ -121,9 +113,7 @@ public function pidListIsReturned()
121113 self ::assertEquals ([123 , 456 , 789 ], $ subject ->_call ('getPidList ' ));
122114 }
123115
124- /**
125- * @test
126- */
116+ #[\PHPUnit \Framework \Attributes \Test]
127117 public function settingsAreProperlyInjected ()
128118 {
129119 self ::markTestSkipped ('Skipped until fixed ' );
@@ -167,9 +157,7 @@ public function settingsAreProperlyInjected()
167157 self ::assertEquals ($ expectedSettings , $ subject ->_get ('settings ' ));
168158 }
169159
170- /**
171- * @test
172- */
160+ #[\PHPUnit \Framework \Attributes \Test]
173161 public function demandIsCreated ()
174162 {
175163 $ demand = new Demand ();
@@ -193,9 +181,7 @@ public function demandIsCreated()
193181 self ::assertEquals ($ expected , $ subject ->_call ('createDemandFromSettings ' ));
194182 }
195183
196- /**
197- * @test
198- */
184+ #[\PHPUnit \Framework \Attributes \Test]
199185 public function showActionFillsView ()
200186 {
201187 $ address = new Address ();
@@ -216,9 +202,7 @@ public function showActionFillsView()
216202 $ subject ->showAction ($ address );
217203 }
218204
219- /**
220- * @test
221- */
205+ #[\PHPUnit \Framework \Attributes \Test]
222206 public function listActionFillsViewForSingleRecords ()
223207 {
224208 $ settings = [
@@ -254,9 +238,7 @@ public function listActionFillsViewForSingleRecords()
254238 $ subject ->listAction ();
255239 }
256240
257- /**
258- * @test
259- */
241+ #[\PHPUnit \Framework \Attributes \Test]
260242 public function listActionFillsViewForDemand ()
261243 {
262244 $ settings = [
@@ -292,9 +274,7 @@ public function listActionFillsViewForDemand()
292274 $ subject ->listAction ();
293275 }
294276
295- /**
296- * @test
297- */
277+ #[\PHPUnit \Framework \Attributes \Test]
298278 public function overrideDemandMethodIsCalledIfEnabled ()
299279 {
300280 $ mockedRequest = $ this ->getAccessibleMock (Request::class, ['hasArgument ' , 'getArgument ' , 'getAttribute ' ], [], '' , false );
@@ -335,10 +315,8 @@ public function overrideDemandMethodIsCalledIfEnabled()
335315 $ subject ->listAction (['not ' , 'empty ' ]);
336316 }
337317
338- /**
339- * @test
340- * @dataProvider overrideDemandWorksDataProvider
341- */
318+ #[\PHPUnit \Framework \Attributes \Test]
319+ #[\PHPUnit \Framework \Attributes \DataProvider('overrideDemandWorksDataProvider ' )]
342320 public function overrideDemandWorks (Demand $ demandIn , Demand $ demandOut , array $ override )
343321 {
344322 $ subject = $ this ->getAccessibleMock (AddressController::class, null , [], '' , false );
0 commit comments