Check out these posts...both show better ways of doing what your
trying to accomplish:
http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way
http://mark-story.com/posts/view/testing-cakephp-controllers-mock-objects-edition

-Matt
http://www.pseudocoder.com

On May 20, 2:01 pm, Fabio Kreusch <[email protected]> wrote:
> Hello all,
>
> For the functional test of my system, I am mocking some of the
> controller methods.
> The only one I am having problems with is the render method.
> This is in my AppController:
>
> function render($action = null, $layout = null, $file = null) {
>     if (CAKE_UNIT_TEST) {
>     } else {
>       parent::render($action, $layout, $file);
>     }
>   }
>
> This works well for the test, but for the real system it just prints a
> blank screen.
> Am I doing something wrong?
--~--~---------~--~----~------------~-------~--~----~
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