Skip to content

Commit f5a1eb8

Browse files
committed
Update integration tests
1 parent c404053 commit f5a1eb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/src/Factories/FormFactoryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use SimpleSAML\Module\oidc\Factories\FormFactory;
1313
use SimpleSAML\Module\oidc\Forms\ClientForm;
1414
use SimpleSAML\Module\oidc\Forms\Controls\CsrfProtection;
15+
use SimpleSAML\Module\oidc\Helpers;
1516
use SimpleSAML\Module\oidc\ModuleConfig;
1617

1718
#[CoversClass(FormFactory::class)]
@@ -21,27 +22,32 @@ class FormFactoryTest extends TestCase
2122
protected MockObject $moduleConfigMock;
2223
protected MockObject $csrfProtectionMock;
2324
protected MockObject $sspBridgeMock;
25+
protected MockObject $helpersMock;
2426

2527
protected function setUp(): void
2628
{
2729
$this->moduleConfigMock = $this->createMock(ModuleConfig::class);
2830
$this->csrfProtectionMock = $this->createMock(CsrfProtection::class);
2931
$this->sspBridgeMock = $this->createMock(SspBridge::class);
32+
$this->helpersMock = $this->createMock(Helpers::class);
3033
}
3134

3235
protected function sut(
3336
?ModuleConfig $moduleConfig = null,
3437
?CsrfProtection $csrfProtection = null,
3538
?SspBridge $sspBridge = null,
39+
?Helpers $helpers = null,
3640
): FormFactory {
3741
$moduleConfig ??= $this->moduleConfigMock;
3842
$csrfProtection ??= $this->csrfProtectionMock;
3943
$sspBridge ??= $this->sspBridgeMock;
44+
$helpers ??= $this->helpersMock;
4045

4146
return new FormFactory(
4247
$moduleConfig,
4348
$csrfProtection,
4449
$sspBridge,
50+
$helpers,
4551
);
4652
}
4753

0 commit comments

Comments
 (0)