Hi Symfony users,

How do you write functional tests when the code is in a component ?

Exemple: I used to have a form in a page, which I tested like that :

info('3 - Status')->

  get('/en/user/edit-my-profile')->

  click('Update your status', array('status' => array(
    'status' => 'Gloubigoulba'
  )), array('with_csrf' => true))->

  with('form')->begin()->
    hasErrors(false)->
  end()->

Everything was fine, until I moved the form handling code in a
component. Now, the web page acts exactly the same way as before, but
the previous code raise a big red error of the death:

  no form has been submitted.


Any idea anyone?
Cheers.
Thibault J.

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

Reply via email to