diff --git a/service-front/app/test/ActorTest/Form/OneLoginFormTest.php b/service-front/app/test/ActorTest/Form/OneLoginFormTest.php index f374af6f6b..1841b27a58 100644 --- a/service-front/app/test/ActorTest/Form/OneLoginFormTest.php +++ b/service-front/app/test/ActorTest/Form/OneLoginFormTest.php @@ -9,6 +9,7 @@ use Common\Form\Element\Csrf; use CommonTest\Form\LaminasFormTests; use CommonTest\Form\TestsLaminasForm; +use Mezzio\Csrf\CsrfGuardInterface; use PHPUnit\Framework\TestCase; use Prophecy\PhpUnit\ProphecyTrait; @@ -35,4 +36,10 @@ public function getFormElements(): array '__csrf' => Csrf::class, ]; } + + public function setUp(): void + { + $guardProphecy = $this->prophesize(CsrfGuardInterface::class); + $this->form = new OneLoginForm($guardProphecy->reveal()); + } }