File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -403,13 +403,12 @@ checks that all application URLs load successfully::
403403 // tests/ApplicationAvailabilityFunctionalTest.php
404404 namespace App\Tests;
405405
406+ use PHPUnit\Framework\Attributes\DataProvider;
406407 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
407-
408+
408409 class ApplicationAvailabilityFunctionalTest extends WebTestCase
409410 {
410- /**
411- * @dataProvider urlProvider
412- */
411+ #[DataProvider('urlProvider')]
413412 public function testPageIsSuccessful($url): void
414413 {
415414 $client = self::createClient();
@@ -418,7 +417,7 @@ checks that all application URLs load successfully::
418417 $this->assertResponseIsSuccessful();
419418 }
420419
421- public function urlProvider(): \Generator
420+ public static function urlProvider(): \Generator
422421 {
423422 yield ['/'];
424423 yield ['/posts'];
You can’t perform that action at this time.
0 commit comments