Skip to content

Commit 77f751d

Browse files
Rodion LiuboretsLuborRod
authored andcommitted
SDK-2000 Add small test
1 parent 044575a commit 77f751d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/DocScan/Session/Create/SdkConfigBuilderTest.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,23 @@ public function shouldSerializeToEmptyObjectWithNoValuesSet()
144144

145145
$this->assertJsonStringEqualsJsonString('{}', json_encode($result));
146146
}
147+
148+
/**
149+
* @test
150+
* @covers \Yoti\DocScan\Session\Create\SdkConfigBuilder::build
151+
* @covers \Yoti\DocScan\Session\Create\SdkConfig::getAllowHandoff
152+
*/
153+
public function allowHandoffShouldBeNullWhenItIsNotSet()
154+
{
155+
$result = (new SdkConfigBuilder())
156+
->withAllowedCaptureMethod(self::SOME_CAPTURE_METHOD)
157+
->withPrimaryColour(self::SOME_PRIMARY_COLOUR)
158+
->withSecondaryColour(self::SOME_SECONDARY_COLOUR)
159+
->withFontColour(self::SOME_FONT_COLOUR)
160+
->withLocale(self::SOME_LOCALE)
161+
->withPresetIssuingCountry(self::SOME_PRESET_ISSUING_COUNTRY)
162+
->build();
163+
164+
$this->assertNull($result->getAllowHandoff());
165+
}
147166
}

0 commit comments

Comments
 (0)