Skip to content

Commit ea6271d

Browse files
committed
SDK-766: Add test coverage for getDocumentImages()
1 parent 1b9b2fd commit ea6271d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Entity/ProfileTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,20 @@ public function getDummyProfileDataWithAgeVerifications()
207207
];
208208
return [[$profileData]];
209209
}
210+
211+
/**
212+
* @covers ::getDocumentImages
213+
*/
214+
public function testGetDocumentImages()
215+
{
216+
$mockAttr = $this->getMockBuilder(\Yoti\Entity\Attribute::class)
217+
->disableOriginalConstructor()
218+
->getMock();
219+
220+
$profileData = [
221+
'document_images' => $mockAttr,
222+
];
223+
$profile = new Profile($profileData);
224+
$this->assertSame($profileData['document_images'], $profile->getDocumentImages());
225+
}
210226
}

0 commit comments

Comments
 (0)