Skip to content

Commit bff99fa

Browse files
committed
minor #17341 [Console] docs(test): add array example for options with CommandTester (kpn13)
This PR was submitted for the 6.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Console] docs(test): add array example for options with CommandTester This PR adds an example of how we can set an array input as option using the CommandTester. It's not so difficult to find the way by ourselves but it doesn't seem to be explicit somewhere. Commits ------- e24a36d docs(test): add array example for options
2 parents 8d186af + e24a36d commit bff99fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

console.rst

+2
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ console::
372372

373373
// prefix the key with two dashes when passing options,
374374
// e.g: '--some-option' => 'option_value',
375+
// use brackets for testing array value,
376+
// e.g: '--some-option' => ['option_value'],
375377
]);
376378

377379
// the output of the command in the console

0 commit comments

Comments
 (0)