Hi,

today i tried to implement some testing classes in my project. But i
can't ge t them run the right way.

For example this simple test method:
The first test calls the show action with a string that should fail
and redirect. The second test with an integer as parameter should run
correctly.

function testShowAction() {
        $this->testAction('/galleries/show/xyz');
        $this->assertResponse(REDIRECT);
        $this->testAction('/galleries/show/2');
        $this->assertResponse(SUCCESS);
}

When i call this method in the "myproject/test.php" it redirects me to
the gallery and exit the test.
Whats the right way to test an controller action ?

Best Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to