Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cookbook/form/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ The simplest ``TypeTestCase`` implementation looks like the following::
$type = new TestedType();
$form = $this->factory->create($type);

$object = new TestObject();
$object->fromArray($formData);
$object = TestObject::fromArray($formData);

// submit the data to the form directly
$form->submit($formData);
Expand Down