@@ -470,21 +470,21 @@ public function testIsNotSubAdminCheck(string $method): void {
470470 }
471471
472472 #[\PHPUnit \Framework \Attributes \DataProvider('dataNoCSRFRequiredSubAdminRequired ' )]
473+ #[\PHPUnit \Framework \Attributes \DoesNotPerformAssertions]
473474 public function testIsSubAdminCheck (string $ method ): void {
474475 $ this ->reader ->reflect ($ this ->controller , $ method );
475476 $ sec = $ this ->getMiddleware (true , false , true );
476477
477478 $ sec ->beforeController ($ this ->controller , $ method );
478- $ this ->addToAssertionCount (1 );
479479 }
480480
481481 #[\PHPUnit \Framework \Attributes \DataProvider('dataNoCSRFRequiredSubAdminRequired ' )]
482+ #[\PHPUnit \Framework \Attributes \DoesNotPerformAssertions]
482483 public function testIsSubAdminAndAdminCheck (string $ method ): void {
483484 $ this ->reader ->reflect ($ this ->controller , $ method );
484485 $ sec = $ this ->getMiddleware (true , true , true );
485486
486487 $ sec ->beforeController ($ this ->controller , $ method );
487- $ this ->addToAssertionCount (1 );
488488 }
489489
490490 #[\PHPUnit \Framework \Attributes \DataProvider('dataNoCSRFRequired ' )]
@@ -506,7 +506,6 @@ public function testRestrictedAppLoggedInPublicPage(string $method): void {
506506 ->willReturn (false );
507507
508508 $ middleware ->beforeController ($ this ->controller , $ method );
509- $ this ->addToAssertionCount (1 );
510509 }
511510
512511 #[\PHPUnit \Framework \Attributes \DataProvider('dataNoAdminRequiredNoCSRFRequiredPublicPage ' )]
@@ -523,7 +522,6 @@ public function testRestrictedAppNotLoggedInPublicPage(string $method): void {
523522 ->willReturn (false );
524523
525524 $ middleware ->beforeController ($ this ->controller , $ method );
526- $ this ->addToAssertionCount (1 );
527525 }
528526
529527 #[\PHPUnit \Framework \Attributes \DataProvider('dataNoAdminRequiredNoCSRFRequired ' )]
0 commit comments