Real-world testing of CakePHP controllers?
I'm writing a new application with CakePHP (just-released 1.2.4), using SimpleTest 1.0.1. I have read the relevant sections of the Cookbook , searched on the Bakery , and read Mark Story's postings on controller testing (the hard way and with mocks ). Unfortunately, none of this talks about real-world testing of non-trivial controllers. Lots of apps put areas of the site behind a login, yet I cannot figure out how to test the simple scenario of: guest access to protected page redirects? valid credentials sets expected session variables? invalid credentials re-displays login page with error