Hi,
I'm writing my first Controller unit tests, having now got Model & Web
testing running :)
I can get the Controller unit test example in the cookbook running on
a simple users controller (http://book.cakephp.org/view/366/Testing-
controllers).
However once I have included the Auth component in my app_controller/
users_controller I run into problems.
For example, if now run the following test:
function testIndex() {
$result = $this->testAction('/users/index');
debug($result);
}
Firstly I get redirect to the application's login page.
If I then login with valid account details and then re-run the test,
test runs but $result is null.
Can anyone please advise how I should be structuring these tests to
work with Auth?
Thanks,
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---