Re: Unitesting with Simpletest

2010-05-23 Thread Aung
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

Re: Unitesting with Simpletest

2010-05-22 Thread Aung
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

Re: Unitesting with Simpletest

2010-05-21 Thread LunarDraco
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

Unitesting with Simpletest

2010-05-20 Thread Aung
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