Also, commented by @wouterj in #8971:
It's quite complex if you don't understand forms well and I think it's not a good example of writing tests (and btw, it's not a Unit test at all if written like this)
Just asking: does it make any sense at all to unit test a Symfony Form? The basic internal working of the form is guaranteed to work (because we test it in Symfony repo) so shouldn't you just test forms in functional or integration tests only?
just test forms in functional or integration tests only
Totally agree
Most helpful comment
Just asking: does it make any sense at all to unit test a Symfony Form? The basic internal working of the form is guaranteed to work (because we test it in Symfony repo) so shouldn't you just test forms in functional or integration tests only?