Helthe\Component\Turbolinks\Tests\TurbolinksTest::testSetsForbiddenForDifferentPort PHP Method

testSetsForbiddenForDifferentPort() public method

    public function testSetsForbiddenForDifferentPort()
    {
        $request = $this->createRequest('/', array('HTTP_X_XHR_REFERER' => 'http://foo.bar:8080'));
        $response = new Response('foo', Response::HTTP_OK, array('Location' => 'http://foo.bar'));
        $this->turbolinks->decorateResponse($request, $response);
        $this->assertEquals(Response::HTTP_FORBIDDEN, $response->getStatusCode());
        $this->assertResponseHasNoCookies($response);
    }