diff --git a/form/unit_testing.rst b/form/unit_testing.rst index 56c9e808683..8bede8c9766 100644 --- a/form/unit_testing.rst +++ b/form/unit_testing.rst @@ -62,8 +62,9 @@ The simplest ``TypeTestCase`` implementation looks like the following:: // submit the data to the form directly $form->submit($formData); - $objectToCompare = $form->getData(); $this->assertTrue($form->isSynchronized()); + + // check that $objectToCompare was modified as expected when the form was submitted $this->assertEquals($object, $objectToCompare); $view = $form->createView();