I test a controller action. I pass data to it via the POST method. After saving a data into DB I do a redirect to a main page where I display a message about of action result.
I want to test whether this behavior and text of the message equal to expected, but I get a null instead of the $this->contents value. Yet, all data saved and messages displayed successfully via the browser. Below is my call of a testAction $res = $this->testAction('/ask', array_merge(array('return' => 'contents'), array('data' => $fields_data, 'method' => 'post'))); -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.