Did you ever figure this out? My $this->header is always returning an
empty array an empty array as well, I've been stuck on this for a couple
days now.. Please help me if you figured this out
On Thursday, August 25, 2011 12:33:08 AM UTC-5, Christophe Roblin wrote:
>
> No, $this->headers seems
No, $this->headers seems to always return an empty array
On 25 Aug, 06:02, jeremyharris wrote:
> When you debug the $this->headers var, what do you get back? Anything
> at all?
>
> If you're not getting anything back then it might be a problem with
> testAction, although there are tests that show
When you debug the $this->headers var, what do you get back? Anything
at all?
If you're not getting anything back then it might be a problem with
testAction, although there are tests that show it works.
On Aug 21, 1:48 am, Christophe Roblin wrote:
> Hi,
>
> I've tried searching the new docs abou
In order to test the result of the complete request cycle you need to use
the second parameter of testAction as follows :
$this->testAction(('/admin/posts/add', array('return' => false))
This way you will be able to assert headers, and text from the layout, the
other possible value for 'return'
Hi,
I've tried searching the new docs about testing with the new PHPUnit
for CakePHP 2.0 Beta, without any success
Below is my code for testing the admin action of controller posts with
method add.
My issue is that I expected from the docs I received that headers were
set when using testAction, i