diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index ff6ca161c5d..2cabf66df31 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -263,7 +263,7 @@ from the command line, you need to overwrite the HelperSet used by the command:: $commandTester = new CommandTester($command); $dialog = $command->getHelper('dialog'); - $dialog->setInputStream($this->getInputStream('Test\n')); + $dialog->setInputStream($this->getInputStream("Test\n")); // Equals to a user inputing "Test" and hitting ENTER // If you need to enter a confirmation, "yes\n" will work