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

protected

blade ( string $template , array $data ) : TestView

Render the contents of the given Blade template string.

Parameters

protected

component ( string $componentClass , array $data ) : TestComponent

Render the given view component.

Parameters

protected

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

Populate the shared view error bag with the given errors.

Parameters

  • $errors array
  • $key string