cakephp/cakephp — pull request #350 by shama (2011-12-03 00:25:11+00:00)
Title: Always set ControllerTestCase::testAction result variables

Is there any reason why `vars`, `contents` and `view` should not be set when the `return` type is `result`? This change doesn't break any of the existing tests but makes it more convenient when using testAction().

Also `$this->controller->viewVars` appears to be a more reliable way to get view vars than `$this->controller->View->viewVars`, which doesn't always appear to be set when testing.