Skip to content

Commit

Permalink
Add setup method to OneLoginFormTest
Browse files Browse the repository at this point in the history
  • Loading branch information
MishNajam committed Oct 25, 2023
1 parent b0a212b commit 8f2daa7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions service-front/app/test/ActorTest/Form/OneLoginFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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());
}
}

0 comments on commit 8f2daa7

Please sign in to comment.