Skip to content

Commit 8f0c9aa

Browse files
committed
Change userInputs to inputs
1 parent 7ecd79e commit 8f0c9aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ from the command line, you need to set the inputs like this::
287287
// ...
288288
$commandTester = new CommandTester($command);
289289

290-
$commandTester->setUserInputs(array('Test'));
290+
$commandTester->setInputs(array('Test'));
291291
// Equals to a user inputting "Test" and hitting ENTER
292292
// If you need to enter a confirmation, adding a second input saying "yes" will work
293293

@@ -296,7 +296,7 @@ from the command line, you need to set the inputs like this::
296296
// $this->assertRegExp('/.../', $commandTester->getDisplay());
297297
}
298298

299-
By calling :method:`CommandTester::setUserInputs`, you imitate what the
299+
By calling :method:`CommandTester::setInputs`, you imitate what the
300300
console would do internally with all user input through the CLI. This way
301301
you can test any user interaction (even complex ones) by passing the appropriate
302302
inputs.

0 commit comments

Comments
 (0)