Skip to content

[5.4] Add assertViewIs() to TestResponse#19291

Merged
taylorotwell merged 1 commit intolaravel:5.4from
marcusmoore:add-assert-view-is-test
May 21, 2017
Merged

[5.4] Add assertViewIs() to TestResponse#19291
taylorotwell merged 1 commit intolaravel:5.4from
marcusmoore:add-assert-view-is-test

Conversation

@marcusmoore
Copy link
Contributor

Adds assertViewIs() to allow for something like:

$this->actingAs($admin)
  ->get('dashboard')
  ->assertViewIs('admin-dashboard');

I think/hope I tested it correctly.

@tillkruss tillkruss changed the title add assertViewIs() to TestResponse [5.4] Add assertViewIs() to TestResponse May 21, 2017
@taylorotwell taylorotwell merged commit 3429b61 into laravel:5.4 May 21, 2017
@marcusmoore marcusmoore deleted the add-assert-view-is-test branch May 22, 2017 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants