[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-06-02 Thread ashton
Not really a solution, more of a workaround, but might as well get an answer up here :D If you get the content in your action like this: $content = $request-getParameter('content'); if(!$content) $content = $request-getContent(); that should allow you to test what you want by passing

[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-04-28 Thread Javier Garcia
Thanks Massimiliano, you're right. I found the example below here http://www.symfony-project.org/jobeet/1_4/Doctrine/en/09: $browser- get('/')- click('Design')- get('/category/programming?page=2')- get('/category/programming', array('page' = 2))- post('search', array('keywords' =