InteractsWithConsole
trait InteractsWithConsole (View source)
Свойства
| bool | $mockConsoleOutput | Указывает, следует ли имитировать вывод консоли. | |
| array | $expectedOutput | Все ожидаемые строки вывода. | |
| array | $expectedOutputSubstrings | Все ожидаемые фрагменты текста, которые должны присутствовать в выводе. | |
| array | $unexpectedOutput | Все строки вывода, которые не ожидаются. | |
| array | $unexpectedOutputSubstrings | Все фрагменты текста, которые не ожидаются в выводе. | |
| array | $expectedTables | Все ожидаемые таблицы вывода. | |
| array | $expectedQuestions | Все ожидаемые вопросы. | |
| array | $expectedChoices | Все ожидаемые вопросы с выбором. |
Методы
| PendingCommand|int | artisan(string $command, array $parameters = []) Вызов команды artisan и возврат кода. | |
| $this | withoutMockingConsoleOutput() Отключить имитацию вывода консоли. |
Подробности
PendingCommand|int
artisan(string $command, array $parameters = [])
Вызов команды artisan и возврат кода.
protected
$this
withoutMockingConsoleOutput()
Отключить имитацию вывода консоли.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.html