Hi, I'm trying to write a test case for a private method in a controller. This controller uses the Email component.
The method purpose is to send notifications via email to users. http://code.assembla.com/milhojas/subversion/nodes/dev/app/controllers/users_controller.php#ln292 I want to test if the message contains all data in the proper format. The test case, tries to send the email in debug delivery mode and compares the expected message to the Message.Email.messsage session variable. http://code.assembla.com/milhojas/subversion/nodes/dev/app/tests/cases/controllers/users_controller.test.php#ln81 The problem is that the Email component fails when trying to set a flash message (EmailComponent line 767) beacause Email->Session component is not an object. This only happens in the test context. So, my question is: what preparations have I to do in order to run this test? Thank you. -- Fran Iglesias [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
