Welcome to the Cookbook

loading...

4.7.6.3 Pitfalls

If you use testAction to test a method in a controller that does a redirect, your test will terminate immediately, not yielding any results.
See https://trac.cakephp.org/ticket/4154 for a possible fix.

For an in-depth explanation of controller testing please see this blog post by Mark Story Testing CakePHP Controllers the hard way.