Re: Testing a controller method

2009-01-19 Thread mark_story
You don't test private methods. You test your public interface, and by testing your public interface your implementation is also tested. As far as testing controllers I wrote a somewhat lenghty post on it http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way As for testing

Testing a controller method

2009-01-18 Thread Fran Iglesias
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