Ops! :) Figured it out.
If you want the contens you need to set the return type for that request to be contents. And the documentations DOES say so! $this->testAction( "some/action", array( "return" => "contents" ) ); On Monday, July 16, 2012 7:27:08 PM UTC+3, Ilie wrote: > > 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
