Re: CakePHP 2.1 - Unit Testing Controllers $this->view and $this->contents equals null
Hello,
I have the same problem but with CakePHP 2.2
in the test case $this->view and $this->contents are ALWAYS null.
Following the code around a bit I see that that $controller->render() is not called and so there no contents to be returned... :(
So how can we test a view since the example code is not working as expected?
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home