Bolt\Tests\Library\BoltLibraryTest::testRedirect PHP Method

testRedirect() public method

public testRedirect ( )
    public function testRedirect()
    {
        $app = $this->getApp();
        $request = Request::createFromGlobals();
        $app->handle($request);
        $response = Library::redirect('search');
        $this->assertEquals('/search', $response->headers->get('Location'));
    }