By now you already know or should know about CakeTestCase::testAction() and the wondrous things it can do. However, testAction has a few shortcomings. It can’t handle redirects, it doesn’t let you use the power of Mocks, and its impossible to make assertions on object state changes. Sometimes you need to do things the hard way, stick your fingers in the mud and work it out. However, knowing how to
![Testing CakePHP Controllers the hard way | Mark Story](https://cdn-ak-scissors.b.st-hatena.com/image/square/a68fe216fa8ba61824e80174c9da8fa907c90074/height=288;version=1;width=512/https%3A%2F%2Fmark-story.com%2Fimg%2Fmouth-icon-large.png)