public function RedirectResponseTest::testGenerateLocationHeader

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/RedirectResponseTest.php, line 28

Class

RedirectResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGenerateLocationHeader() {
  $response = new RedirectResponse('foo.bar');
  $this
    ->assertTrue($response->headers
    ->has('Location'));
  $this
    ->assertEquals('foo.bar', $response->headers
    ->get('Location'));
}