Skip to content

Commit

Permalink
Fix event for failure in test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup authored Apr 30, 2024
1 parent ea11ac4 commit 41f4a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Test/FormHandlerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private function registerFailHandler(FormHandlerFailInterface $handler, EventDis
return;
}

$dispatcher->addListener(FormHandlerEvents::EVENT_FORM_SUCCESS, function (FormHandlerEvent $event) use ($handler) {
$dispatcher->addListener(FormHandlerEvents::EVENT_FORM_FAIL, function (FormHandlerEvent $event) use ($handler) {
$form = $event->getForm();

if (!$form instanceof FormInterface) {
Expand Down

0 comments on commit 41f4a66

Please sign in to comment.