I have a users controller, and it has a login action. So, how do I write a test case for this login action. For simplicity sake, lets just say all this action does is to redirect user if authentication passed, else display a message with setFlash.
I'm thinking of creating a mock post request to users/login. This will then activate the users controller and have the test case capture a redirection, or a setFlash. The result will some how be captured by assert actions. But these are theories and I'm not sure how to go about, or if thats how I should go about it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php