Skip to content

Commit beb47f5

Browse files
committed
SDK-1019: Check getAnchors() returns unknown anchors
1 parent 7cef17e commit beb47f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Entity/AttributeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function setup()
2626
$protobufAnchors[] = $this->convertToProtobufAnchor(TestAnchors::SOURCE_DL_ANCHOR);
2727
$protobufAnchors[] = $this->convertToProtobufAnchor(TestAnchors::SOURCE_PP_ANCHOR);
2828
$protobufAnchors[] = $this->convertToProtobufAnchor(TestAnchors::VERIFIER_YOTI_ADMIN_ANCHOR);
29+
$protobufAnchors[] = $this->convertToProtobufAnchor(TestAnchors::UNKNOWN_ANCHOR);
2930
$collection = new ArrayObject($protobufAnchors);
3031
$yotiAnchorsMap = AnchorListConverter::convert($collection);
3132

@@ -99,6 +100,8 @@ public function testGetAnchors()
99100
$this->assertEquals('PASSPORT', $anchors[1]->getValue());
100101
$this->assertEquals(YotiAnchor::TYPE_VERIFIER_NAME, $anchors[2]->getType());
101102
$this->assertEquals('YOTI_ADMIN', $anchors[2]->getValue());
103+
$this->assertEquals(YotiAnchor::TYPE_UNKNOWN_NAME, $anchors[3]->getType());
104+
$this->assertEquals('', $anchors[3]->getValue());
102105
}
103106

104107
/**

0 commit comments

Comments
 (0)