From 8f2daa7290f7bb92567bd52016f2e24459c0f1aa Mon Sep 17 00:00:00 2001 From: Mishkat Najam Date: Wed, 25 Oct 2023 10:35:35 +0100 Subject: [PATCH] Add setup method to OneLoginFormTest --- service-front/app/test/ActorTest/Form/OneLoginFormTest.php | 7 +++++++ 1 file changed, 7 insertions(+) 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()); + } }