We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f884555 commit 36c183eCopy full SHA for 36c183e
form/unit_testing.rst
@@ -55,7 +55,8 @@ The simplest ``TypeTestCase`` implementation looks like the following::
55
$type = new TestedType();
56
$form = $this->factory->create($type);
57
58
- $object = TestObject::fromArray($formData);
+ $object = new TestObject();
59
+ // ...populate $object properties with the data stored in $formData
60
61
// submit the data to the form directly
62
$form->submit($formData);
0 commit comments