trait InteractsWithViews (View source)
| TestView | view(string $view, Arrayable|array $data = [])
Create a new TestView from the given view. | |
| TestView | blade(string $template, Arrayable|array $data = [])
Render the contents of the given Blade template string. | |
| TestComponent | component(string $componentClass, Arrayable|array $data = [])
Render the given view component. | |
| $this | withViewErrors(array $errors, string $key = 'default')
Populate the shared view error bag with the given errors. |
Create a new TestView from the given view.
Render the contents of the given Blade template string.
Render the given view component.
Populate the shared view error bag with the given errors.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Testing/Concerns/InteractsWithViews.html