[FLOW3-general] Functional test for edit form validation
Alexander Berl
a.berl at gmx.de
Sun Aug 12 16:10:02 CEST 2012
Hi everyone,
I just tried creating a functional test for
https://review.typo3.org/#/c/13600/, but I came to an unexpected
behaviour that blocks
the actual test from working (ie. I can't get the invalid edit form back
to check if the __identity field is included).
It seems that when submitting an edit form for a persisted object and
supposedly creating a form error, the validation doesn't fail
but updates the object instead. The
formIsRedisplayedIfValidationErrorsOccur test doesn't fail though, so I
guess it has to do with
the object already being persisted.
Here's the test for TYPO3\Fluid\Tests\Functional\Form\FormObjectsTest:
https://gist.github.com/3331658 <https://gist.github.com/3331658>
However, the exact same behaviour works fine with a newly created
package resembling that test.
Is there some logic flaw in the functional test I don't see?
Or can someone verify that this test fails when it shouldn't?
Thanks,
Alexander
More information about the FLOW3-general
mailing list