Il giorno giovedì 21 aprile 2011 17:48:41 UTC+2, Javier Garcia ha scritto:

> I want to create a functional test for an action that receives a POST 
> method with data in JSON format. 
>
> This is what I have: 
>
>   info('set car')-> 
>   post('/user/'.$user->getId().'/set-car/'.$car->getId()'-> 
>
>   with('request')->ifFormat('json')->begin()-> 
>     isParameter('module', 'myModule')-> 
>     isParameter('action', 'myAction')-> 
>   end()-> 
>
> But..where should I set the receiving json data? 
>
> sf 1.4 
>

You should pass data as second argument to post()

cheers
Massimiliano 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to