Skip to content

Fix form unit testing code sample #13744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

yoannrenard
Copy link
Contributor

Quick fix of this little bit of code that was misleading.

@javiereguiluz
Copy link
Member

@yoannrenard thanks for this contribution. However, this is tricky. This object is both "the object to test" and "the form data" at the same time. When you submit the form, the object is modified and contains the data submitted in the form. @xabbuh @OskarStark what do you think? Should we update the example or leave it as is? Thanks!

@yoannrenard yoannrenard force-pushed the fix/form-unit-testing-code-sample branch from f7923b8 to 62aee7c Compare June 4, 2020 14:14
@xabbuh xabbuh added this to the 3.4 milestone Jun 4, 2020
@javiereguiluz
Copy link
Member

Yoann thanks and congrats on your first Symfony Docs contribution!

@javiereguiluz javiereguiluz merged commit 111f92a into symfony:3.4 Jun 10, 2020
@yoannrenard yoannrenard deleted the fix/form-unit-testing-code-sample branch June 14, 2020 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants