cakephp/cakephp — pull request #5461 by dereuromark (2014-12-21 20:46:25+00:00)
Title: Add assertNoRedirect method.

Might be a useful addition to the test case.

I often check for redirects with

$this->assertResponseOk();
$this->assertRedirect($url);

But when some response should specifically not redirect, this is more difficult to assert.
This PR makes this possible quite easily:

$this->assertResponseOk();
$this->assertNoRedirect();

I can take a look into how to add a test case for this.