Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16e5577

Browse files
committed
[#2793] Tweaking language and removing unnecessary command argument per @stof
1 parent 104e842 commit 16e5577

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cookbook/console/console_command.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ instead of
106106
$commandTester = new CommandTester($command);
107107
$commandTester->execute(
108108
array(
109-
'command' => $command->getName(),
110109
'name' => 'Fabien',
111110
'--yell' => true,
112111
)
@@ -120,8 +119,9 @@ instead of
120119

121120
.. note::
122121

123-
In the specific case above, the ``name`` parameter and the ``--yell`` option are not
124-
mandatory for the command to work well, but they are shown for the example.
122+
In the specific case above, the ``name`` parameter and the ``--yell`` option
123+
are not mandatory for the command to work, but are shown so you can see
124+
how to customize them when calling the command.
125125

126126
To be able to use the fully set up service container for your console tests
127127
you can extend your test from
@@ -146,7 +146,6 @@ you can extend your test from
146146
$commandTester = new CommandTester($command);
147147
$commandTester->execute(
148148
array(
149-
'command' => $command->getName(),
150149
'name' => 'Fabien',
151150
'--yell' => true,
152151
)

0 commit comments

Comments
 (0)