Wednesday, October 26, 2011

Re: How to send JSON data when REST Testing with PHPUnit in CakePHP 2.0

Well the workaround was rather obvious though it being a workaround
means I'm not really properly testing my controller since I'm not
sending any JSON data. Instead of trying to send the JSON-formatted
string I just sent the JSON-decoded array of data and it passed the
test. I think it was more a matter of trying to make it work in a way
that goes against what CakePHP does or expects. I could be wrong
though.

Regards,

mc

--
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

No comments: