laravel / 6 / api / 6.x / illuminate / foundation / testing / concerns / interactswithconsole.html

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 $expectedQuestions

All of the expected 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.

Parameters

string $command
array $parameters

Return Value

protected $this withoutMockingConsoleOutput()

Disable mocking the console output.

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/Foundation/Testing/Concerns/InteractsWithConsole.html