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