mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Add more front-end controllers, language file cleanup
This commit is contained in:
@@ -160,11 +160,22 @@ trait ControllerAssertionsTrait
|
||||
* @param string $route
|
||||
* @param mixed $response
|
||||
*/
|
||||
public function assertRouteRedirectEquals($route, $response)
|
||||
public function assertRedirectRouteEquals($route, $response)
|
||||
{
|
||||
PHPUnit_Framework_Assert::assertEquals(route($route), $response->getTargetUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that a route redirect URL equals as passed URL.
|
||||
*
|
||||
* @param string $url
|
||||
* @param mixed $response
|
||||
*/
|
||||
public function assertRedirectUrlEquals($url, $response)
|
||||
{
|
||||
PHPUnit_Framework_Assert::assertEquals($url, $response->getTargetUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that a response code equals a given code.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user