TestCase::assertRedirectedToRoute()

$this assertRedirectedToRoute(string $name, array $parameters = array(), array $with = array()) Assert whether the client was redirected to a given route. Parameters string $name array $parameters array $with Return Value $this

TestCase::assertRedirectedToAction()

$this assertRedirectedToAction(string $name, array $parameters = array(), array $with = array()) Assert whether the client was redirected to a given action. Parameters string $name array $parameters array $with Return Value $this

TestCase::assertRedirectedTo()

$this assertRedirectedTo(string $uri, array $with = array()) Assert whether the client was redirected to a given URI. Parameters string $uri array $with Return Value $this

TestCase::assertHasOldInput()

void assertHasOldInput() Assert that the session has old input. Return Value void

TestCase::artisan()

int artisan(string $command, array $parameters = array()) Call artisan command and return code. Parameters string $command array $parameters Return Value int

TestCase::afterApplicationCreated()

void afterApplicationCreated(callable $callback) Register a callback to be run after the application is created. Parameters callable $callback Return Value void

TestCase::action()

Response action(string $method, string $action, array $wildcards = array(), array $parameters = array(), array $cookies = array(), array $files = array(), array $server = array(), string $content = null) Call a controller action and return the Response. Parameters string $method string $action array $wildcards array $parameters array $cookies array $files array $server string $content Return Value Response

TestCase::actingAs()

$this actingAs(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. Parameters Authenticatable $user string|null $driver Return Value $this

TestCase

TestCase class TestCase extends PHPUnit_Framework_TestCase (View source) Traits InteractsWithContainer MakesHttpRequests ImpersonatesUsers InteractsWithAuthentication InteractsWithConsole InteractsWithDatabase InteractsWithSession MocksApplicationServices InteractsWithPages

TerminableMiddleware deprecated::terminate()

void terminate(Request $request, Response $response) Perform any final actions for the request lifecycle. Parameters Request $request Response $response Return Value void