You need to specify which methods you need to mock for the components. For
instance, you could only mock the user() method on the AuthComponent, and
supply any return value for each of your calls on the method, in other to
test authorization on it.
$this->generate('MyController', array('compone
Hi,
I have a UsersController, and I've configured AuthComponent to use
'Controller' authorization mechanism. I also setup everything to allow just
the index action and deny everything else. It works just fine when I go
through the browser: ie, I can see the list of users and I get redirected t