Finish up unit tests for base controllers

This commit is contained in:
Dane Everitt 2017-09-02 18:56:15 -05:00
parent 4203cdcb77
commit 37508a370d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 507 additions and 40 deletions

View file

@ -77,6 +77,7 @@ class AccountControllerTest extends TestCase
{
$response = $this->controller->index();
$this->assertIsViewResponse($response);
$this->assertViewNameEquals('base.account', $response);
}
@ -93,6 +94,7 @@ class AccountControllerTest extends TestCase
$this->alert->shouldReceive('success->flash')->once()->andReturnNull();
$response = $this->controller->update($this->request);
$this->assertIsRedirectResponse($response);
$this->assertRouteRedirectEquals('account', $response);
}
@ -109,6 +111,7 @@ class AccountControllerTest extends TestCase
$this->alert->shouldReceive('success->flash')->once()->andReturnNull();
$response = $this->controller->update($this->request);
$this->assertIsRedirectResponse($response);
$this->assertRouteRedirectEquals('account', $response);
}
@ -127,6 +130,7 @@ class AccountControllerTest extends TestCase
$this->alert->shouldReceive('success->flash')->once()->andReturnNull();
$response = $this->controller->update($this->request);
$this->assertIsRedirectResponse($response);
$this->assertRouteRedirectEquals('account', $response);
}
}