Spec-Zone.ru › Laravel 6

InteractsWithConsole

trait InteractsWithConsole (View source)

Свойства

bool$mockConsoleOutput

Указывает, нужно ли подменять вывод консоли.

array$expectedOutput

Все ожидаемые строки вывода.

array$expectedQuestions

Все ожидаемые вопросы.

Методы

PendingCommand|intartisan(string $command, array $parameters = [])

Вызов команды artisan и возврат кода.

$thiswithoutMockingConsoleOutput()

Отключить подмену вывода консоли.

Подробности

PendingCommand|int
artisan(string $command, array $parameters = [])

Вызов команды artisan и возврат кода.

Параметры

string$command
array$parameters

Возвращаемое значение

PendingCommand|int


protected
$this
withoutMockingConsoleOutput()

Отключить подмену вывода консоли.

Возвращаемое значение

$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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API