mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Should wrap up the base landing page stuff for accounts, next step is server rendering
This commit is contained in:
@@ -83,4 +83,13 @@ trait ControllerAssertionsTrait
|
||||
{
|
||||
PHPUnit_Framework_Assert::assertEquals($value, array_get($view->getData(), $attribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $route
|
||||
* @param \Illuminate\Http\RedirectResponse $response
|
||||
*/
|
||||
public function assertRouteRedirectEquals($route, $response)
|
||||
{
|
||||
PHPUnit_Framework_Assert::assertEquals(route($route), $response->getTargetUrl());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user