File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ public function setup()
26
26
$ protobufAnchors [] = $ this ->convertToProtobufAnchor (TestAnchors::SOURCE_DL_ANCHOR );
27
27
$ protobufAnchors [] = $ this ->convertToProtobufAnchor (TestAnchors::SOURCE_PP_ANCHOR );
28
28
$ protobufAnchors [] = $ this ->convertToProtobufAnchor (TestAnchors::VERIFIER_YOTI_ADMIN_ANCHOR );
29
+ $ protobufAnchors [] = $ this ->convertToProtobufAnchor (TestAnchors::UNKNOWN_ANCHOR );
29
30
$ collection = new ArrayObject ($ protobufAnchors );
30
31
$ yotiAnchorsMap = AnchorListConverter::convert ($ collection );
31
32
@@ -99,6 +100,8 @@ public function testGetAnchors()
99
100
$ this ->assertEquals ('PASSPORT ' , $ anchors [1 ]->getValue ());
100
101
$ this ->assertEquals (YotiAnchor::TYPE_VERIFIER_NAME , $ anchors [2 ]->getType ());
101
102
$ this ->assertEquals ('YOTI_ADMIN ' , $ anchors [2 ]->getValue ());
103
+ $ this ->assertEquals (YotiAnchor::TYPE_UNKNOWN_NAME , $ anchors [3 ]->getType ());
104
+ $ this ->assertEquals ('' , $ anchors [3 ]->getValue ());
102
105
}
103
106
104
107
/**
You can’t perform that action at this time.
0 commit comments