trait Illuminate / Foundation / Testing / Concerns / InteractsWithViews

InteractsWithViews

Methods

protected

view ( string $view , $data ) : TestView

Create a new TestView from the given view.

Parameters

  • $view string
  • $data Illuminate\...\Arrayable|array
protected

blade ( string $template , $data ) : TestView

Render the contents of the given Blade template string.

Parameters

  • $template string
  • $data Illuminate\...\Arrayable|array
protected

component ( string $componentClass , $data ) : TestComponent

Render the given view component.

Parameters

  • $componentClass string
  • $data Illuminate\...\Arrayable|array
protected

withViewErrors ( array $errors , $key ) : $this

Populate the shared view error bag with the given errors.

Parameters

  • $errors array
  • $key string