File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ from the command line, you need to set the inputs like this::
287
287
// ...
288
288
$commandTester = new CommandTester($command);
289
289
290
- $commandTester->setUserInputs (array('Test'));
290
+ $commandTester->setInputs (array('Test'));
291
291
// Equals to a user inputting "Test" and hitting ENTER
292
292
// If you need to enter a confirmation, adding a second input saying "yes" will work
293
293
@@ -296,7 +296,6 @@ from the command line, you need to set the inputs like this::
296
296
// $this->assertRegExp('/.../', $commandTester->getDisplay());
297
297
}
298
298
299
- By calling :method: `CommandTester::setUserInputs `, you imitate what the
300
- console would do internally with all user input through the CLI. This way
301
- you can test any user interaction (even complex ones) by passing the appropriate
302
- inputs.
299
+ By calling :method: `CommandTester::setInputs `, you imitate what the console would
300
+ do internally with all user input through the CLI. This way you can test any
301
+ user interaction (even complex ones) by passing the appropriate inputs.
You can’t perform that action at this time.
0 commit comments