Spec-Zone.ru › Laravel 8

InteractsWithViews

trait InteractsWithViews (View source)

Methods

TestView view(string $view, array $data = [])

Создать новый TestView из заданного представления.

TestView blade(string $template, array $data = [])

Отобразить содержимое заданной строки шаблона Blade.

TestComponent component(string $componentClass, array $data = [])

Отобразить заданный компонент представления.

$this withViewErrors(array $errors, string $key = 'default')

Заполнить общий пакет ошибок представления заданными ошибками.

Details

protected TestView view(string $view, array $data = [])

Создать новый TestView из заданного представления.

Parameters

string $view
array $data

Return Value

TestView

protected TestView blade(string $template, array $data = [])

Отобразить содержимое заданной строки шаблона Blade.

Parameters

string $template
array $data

Return Value

TestView

protected TestComponent component(string $componentClass, array $data = [])

Отобразить заданный компонент представления.

Parameters

string $componentClass
array $data

Return Value

TestComponent

protected $this withViewErrors(array $errors, string $key = 'default')

Заполнить общий пакет ошибок представления заданными ошибками.

Parameters

array $errors
string $key

Return Value

$this

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

Spec-Zone.ru

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