File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
tests/DocScan/Session/Create Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -144,4 +144,23 @@ public function shouldSerializeToEmptyObjectWithNoValuesSet()
144
144
145
145
$ this ->assertJsonStringEqualsJsonString ('{} ' , json_encode ($ result ));
146
146
}
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
+ }
147
166
}
You can’t perform that action at this time.
0 commit comments