Of course it will, hard to find stuff from nate that doesn't ;) Though you will run into trouble when your controller uses Components, or has callbacks (such as beforeRender.)
Once again the best way I see now is to use Object::requestAction(), which in fact uses Dispatcher::dispatch(), which instantiates the controller properly (and its related classes), and gives all the callbacks. In fact I'm gonna talk to nut to see if we should add something to CakeTestCase class (that so far is only used for fixture based test cases) to properly execute a Cake action from the test case. -MI --------------------------------------------------------------------------- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -----Mensaje original----- De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de [EMAIL PROTECTED] Enviado el: Lunes, 16 de Abril de 2007 10:47 p.m. Para: Cake PHP Asunto: Re: Call to a member function read() on a non-object in when TEST @nate your method works thx. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
