Now i can solve all of my above problems using webtestcase class.
I can dump the result of the call by using showSource() method.
However, I don't know how to get these result to be edited.
For example, my call will show {"code":"200"} if I use $this-
>showSource(). However, i still want to pass
Thank for your advice and suggestions.
On May 22, 1:40 am, LunarDraco wrote:
> Exactly what are you trying to test?
> It looks like your trying to test the http POST and response
> protocols, I'm pretty sure Apache and other web server engines have
> fully tested those.
>
> First make sure your l
Exactly what are you trying to test?
It looks like your trying to test the http POST and response
protocols, I'm pretty sure Apache and other web server engines have
fully tested those.
First make sure your logic is as deep into the model as possible. As
models are much easier to test than control
Hi team,
I have been using cakephp for one of my projects and we are trying to
test with Simpletest as provided in the documentation. However, our
api cannot be called directly. We have to use
* Method: POST
* Header Name: Content-Type
* Header Value: application/x-www-form-urlencoded