Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Closed
Description
In the cookbook articleHow to create a Console Command there is a section onTesting Commands.
This section is a little vague on details and should be expanded upon to be a bit more friendly. Some ideas for improvement:
Application should be used instead of Application:- This currently only links to the two separate classes and is very confusing on first read because you have to click each respective link to find out which one to NOT use. Instead detail which package each one is from and explain WHY this suggestion is being made.- Reading that extending from
WebTestCasewas the best way to test my command is a bit weird. I think, "My Command has nothing to do with the web--why am I extending from a class called WebTestCase?" To me this sounds likeSymfony\Bundle\FrameworkBundle\Test\WebTestCaseshould be renamed to something more generic likeFunctionalTestCase.
I have opened a PR about renamingWebTestCase toFunctionalTestCase:symfony/symfony#7704