Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cookbook] Clarify suggestions for Testing Commands #2514

Closed
Labels
ConsoleactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)
@johnkary

Description

@johnkary

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:

  1. 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.
  2. Reading that extending fromWebTestCase was 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\WebTestCase should be renamed to something more generic likeFunctionalTestCase.

I have opened a PR about renamingWebTestCase toFunctionalTestCase:symfony/symfony#7704

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleactionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp