src/Concerns/MakesHttpRequests.php
public function assertRedirectedTo($uri, $with = [])
    {
        PHPUnit::assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', $this->response);

        PHPUnit::assertEquals($this->app['url']->to($uri), $this->response->headers->get('Location'));

        $this->assertSessionHasAll($with);

        return $this;
    }
public function assertRedirectedTo($uri, $with = [])
    {
        PHPUnit::assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', $this->response);

        PHPUnit::assertEquals($this->app['url']->to($uri), $this->response->headers->get('Location'));

        $this->assertSessionHasAll($with);

        return $this;
    }
public function assertRedirectedTo ( $ uri , $ with = [ ] ) { PHPUnit :: assertInstanceOf ( 'Symfony\Component\HttpFoundation\RedirectResponse' , $ this -> response ) ; PHPUnit :: assertEquals ( $ this -> app [ 'url' ] -> to ( $ uri ) , $ this -> response -> headers -> get ( 'Location' ) ) ; $ this -> assertSessionHasAll ( $ with ) ; return $ this ; }
Assert whether the client was redirected to a given URI.

@param  string  $uri
@param  array  $with
@return $this
Assert whether the client was redirected to a given URI .