mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-12 19:33:45 +02:00
Finish up unit tests for base controllers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user