Skip to content

Commit 475e668

Browse files
committed
minor #9431 [#9413] some minor tweaks (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [#9413] some minor tweaks Commits ------- a624ca3 [#9413] some minor tweaks
2 parents 71b16b1 + a624ca3 commit 475e668

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

form/unit_testing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ The simplest ``TypeTestCase`` implementation looks like the following::
6262
// submit the data to the form directly
6363
$form->submit($formData);
6464

65-
$objectToCompare = $form->getData();
6665
$this->assertTrue($form->isSynchronized());
66+
67+
// check that $objectToCompare was modified as expected when the form was submitted
6768
$this->assertEquals($object, $objectToCompare);
6869

6970
$view = $form->createView();

0 commit comments

Comments
 (0)