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,
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 {
par