Hi,
I'm doing unit testing in CakePHP. I want to test two of my controllers. My app has different kinds of users. I want to test the results the app return depending on which type of user is logged in. I don't know, however, how to log in to the app from the controller test case. I tried a couple of approaches without success. 1) I tried to log in using the Users controller and then running my test case, and 2) tried to group a web test case with the controller unit test.
Any help would be greatly appreaciated.
Thanks.