/**
  * Test the Redirect::to method.
  *
  * @group laravel
  */
 public function testSimpleRedirectSetsCorrectHeaders()
 {
     $redirect = Redirect::to('user/profile');
     $this->assertEquals(302, $redirect->status());
     $this->assertEquals('http://localhost/user/profile', $redirect->headers()->get('location'));
     $redirect = Redirect::to('user/profile', 301, true);
     $this->assertEquals(301, $redirect->status());
     $this->assertEquals('https://localhost/user/profile', $redirect->headers()->get('location'));
     $redirect = Redirect::to_secure('user/profile', 301);
     $this->assertEquals(301, $redirect->status());
     $this->assertEquals('https://localhost/user/profile', $redirect->headers()->get('location'));
 }