Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Sep 19, 2021
1 parent 6a7c6ef commit 63e64f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Datagrid/DatagridTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Form\Form;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormFactoryInterface;

class TestEntity
Expand Down Expand Up @@ -78,8 +79,10 @@ protected function setUp(): void

$this->formBuilder
->method('add')
->willReturnCallback(function ($name, $type, $options) use ($eventDispatcher, $formFactory): void {
->willReturnCallback(function ($name, $type, $options) use ($eventDispatcher, $formFactory): FormBuilderInterface {
$this->formTypes[$name] = new FormBuilder($name, TestEntity::class, $eventDispatcher, $formFactory, $options);

return $this->formBuilder;
});

$form = $this->createMock(Form::class);
Expand Down

0 comments on commit 63e64f8

Please sign in to comment.