Hello,
Try some debugging, because everything works fine with the click() method.
try this :
// your test code
->with('response')
->debug()
// next
And see the ouput. You should see the HTML code retrieved by the tester.
Otherwise, create a pastebin <http://pastebin.com/> with your generated HTML
from debug() and another with PHP (and enable color, plizzz ;))
Thanks,
Alexandre
2009/11/17 phil0 <[email protected]>
>
> Since I got no replies I consider creating a ticket...?
>
> On Nov 6, 2:37 pm, phil0 <[email protected]> wrote:
> > Hi there
> >
> > I have a number of forms on an i18n enabled site that I am currently
> > writing some functional testing for. However, I have run into a few
> > problems with the submission of forms through the click() method.
> >
> > According to the Jobeet tutorial (http://www.symfony-project.org/
> > jobeet/1_3/Doctrine/en/11) you'll have to pass the value of the submit
> > button for the click method to submit the form. I cannot make this
> > work - the test just fails stating that there was no form submission.
> >
> > I have found a workaround. If I add a second submit button
> > (style="display:none;" - type="hidden" doesn't work) with a static
> > label, e.g. <input type="submit" value="CLICKME"
> > style="display:none;" /> and modifies the click call to ->click
> > ('CLICKME') it works fine.
> >
> > The form field that doesn't work is this: <input type="submit"
> > value="<?php echo __('Opret bruger'); ?>" /> with the click call of -
> >
> > >click('Opret bruger').
> >
> > I have checked that the culture is the right.
> >
> > Am I using the click method in a wrong way or...?
> --~--~---------~--~----~------------~-------~--~----~
> 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]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
--
Alexandre Salomé -- [email protected]
--
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].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=.