Hi, I just want to test a User controller that has a register action. When a user is successfully registered, the action redirects.
I've read these resources but still can't get it to work: http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way http://mark-story.com/posts/view/testing-cakephp-controllers-mock-objects-edition http://groups.google.com/group/cake-php/browse_thread/thread/eea20121c17e24c8 http://groups.google.com/group/cake-php/browse_thread/thread/eea1e499d57bd9ce/101e357bbdda1104?lnk=gst&q=test#101e357bbdda1104 I tried the mark story approach: http://bin.cakephp.org/view/1271415317 But I get errors like: Unexpected PHP error [Undefined index: action] severity [E_NOTICE] in [/var/www/.../cake/libs/controller/components/auth.php line 266] I tried using partialMock Objects: http://bin.cakephp.org/view/986222177 I tried setting the constant using advice from mmalca: http://groups.google.com/group/cake-php/browse_thread/thread/eea20121c17e24c8 But that resulted in a bunch of errors to do with tables not being set up etc. I'm using a test database, all I want to do is pass data for the registration to the action, see that it registers the user and finish. Any help appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
