Skip to content

[Cookbook] Example shown doesn't work for unit testing ConsoleCommand #2870

Closed
@gena01

Description

@gena01

The section here has a typo:
http://symfony.com/doc/current/cookbook/console/console_command.html#testing-commands

Seems like adding another line:
'command' => $command->getName(),
before the name key fixes the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleactionableClear and specific issues ready for anyone to take them.buggood 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