diff --git a/testing.rst b/testing.rst index 1e57b26447c..4b8412e1d81 100644 --- a/testing.rst +++ b/testing.rst @@ -284,8 +284,9 @@ document:: // Assert that the response is a redirect to /demo/contact $this->assertTrue( - $client->getResponse()->isRedirect('/demo/contact'), - 'response is a redirect to /demo/contact' + $client->getResponse()->isRedirect('/demo/contact') + // if the redirection URL was generated as an absolute URL + // $client->getResponse()->isRedirect('http://localhost/demo/contact') ); // ...or simply check that the response is a redirect to any URL $this->assertTrue($client->getResponse()->isRedirect());