Open willmorgan opened 10 years ago
Yep, it looks like the simpleform tester assumes that relative links are absolute so parses them incorrectly and returns them with a leading "http://".
So, it sees a form with action "controller/Form" and returns "http://controller/Form" as the URL.
When using a standalone
Controller
, If I runFunctionalTest->submitForm()
twice, the second call will erroneously return a 404 because of a malformed formaction
attribute.Rough test code:
My custom form doesn't do anything weird with the
FormAction
attribute, and for now I have worked around the issue by making theMemberModuleTestController
provide an absoluteLink
function return.As far as I can see there's a problem with the thirdparty
SimpleURL->asString
method which mangles the URL slightly.Thanks to @dhensby who worked with me in the role of "rubber duck". :smiling_imp: