Skip to content

Commit

Permalink
Issue #3154461 by Hardik_Patel_12: Removing getFormObject call from U…
Browse files Browse the repository at this point in the history
…serAccountFormFieldsTest

(cherry picked from commit e76396d4cc6e2f61345657ba913d30c1e1141f41)
  • Loading branch information
catch committed Jun 26, 2020
1 parent 8225340 commit f2ce991
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/user/tests/src/Kernel/UserAccountFormFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ protected function buildAccountForm($operation) {
$entity = $this->container->get('entity_type.manager')
->getStorage($entity_type)
->create($fields);
$this->container->get('entity_type.manager')
->getFormObject($entity_type, $operation)
->setEntity($entity);

// @see EntityFormBuilder::getForm()
return $this->container->get('entity.form_builder')->getForm($entity, $operation);
Expand Down

0 comments on commit f2ce991

Please sign in to comment.