trait InteractsWithConsole (View source)
bool | $mockConsoleOutput | Indicates if the console output should be mocked. | |
array | $expectedOutput | All of the expected output lines. | |
array | $unexpectedOutput | All of the output lines that aren't expected to be displayed. | |
array | $expectedTables | All of the expected ouput tables. | |
array | $expectedQuestions | All of the expected questions. | |
array | $expectedChoices | All of the expected choice questions. |
PendingCommand|int | artisan(string $command, array $parameters = []) Call artisan command and return code. | |
$this | withoutMockingConsoleOutput() Disable mocking the console output. |
Call artisan command and return code.
Disable mocking the console output.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.html