Neos\Flow\Tests\Functional\Http\Client\BrowserTest::redirectsAreNotFollowedIfSwitchedOff PHP Метод

redirectsAreNotFollowedIfSwitchedOff() публичный Метод

Check if the browser doesn't follow redirects if told so
    public function redirectsAreNotFollowedIfSwitchedOff()
    {
        $this->browser->setFollowRedirects(false);
        $response = $this->browser->request('http://localhost/test/http/redirecting');
        $this->assertNotContains('arrived.', $response->getContent());
        $this->assertEquals(303, $response->getStatusCode());
        $this->assertEquals('http://localhost/test/http/redirecting/tohere', $response->getHeader('Location'));
    }