trait
Illuminate
/
Foundation
/
Testing
/
Concerns
/
InteractsWithViews
You are viewing an older version of the documentation. For the latest, please visit master documentation.
InteractsWithViews
Methods
protected
view ( string $view , array $data ) : TestView
Create a new TestView from the given view.
Parameters
- $view string
- $data Arrayable |array
protected
blade ( string $template , array $data ) : TestView
Render the contents of the given Blade template string.
Parameters
- $template string
- $data Arrayable |array
protected
component ( string $componentClass , array $data ) : TestComponent
Render the given view component.
Parameters
- $componentClass string
- $data Arrayable |array
protected
withViewErrors ( array $errors , $key ) : $this
Populate the shared view error bag with the given errors.
Parameters
- $errors array
- $key string