Skip to content

Conversation

Maxcastel
Copy link

@Maxcastel Maxcastel commented Jul 14, 2025

Fixes: #1718

Change

if (!class_exists(WebTestCase::class)) { $io->caution('You\'ll need to install the `symfony/test-pack` to execute the tests for your new controller.'); }

to

if (!class_exists(TestCase::class)) { $io->caution('You\'ll need to install the `symfony/test-pack` to execute the tests for your new controller.'); }
  • Symfony\Bundle\FrameworkBundle\Test\WebTestCase to PHPUnit\Framework\TestCase

Error is now displayed and files are created

generate-phpunit-tests-make-controller-ok2

generate-phpunit-tests-make-crud-ok2

generate-phpunit-tests-make-registration-form-ok1

generate-phpunit-tests-make-reset-password-ok2

generate-phpunit-tests-make-security-form-login-ok2

…ssword] [make:security:form-login] Fix error while generating PHPUnit tests
@Maxcastel Maxcastel force-pushed the fix-generate-phpunit-tests branch from d07942e to f3336b7 Compare July 15, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants