Skip to content

Commit bc000b0

Browse files
committed
test: align docmdp validator signer payloads
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> (cherry picked from commit 2334de2)
1 parent 7f6b83d commit bc000b0

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

tests/php/Unit/Service/DocMdp/ValidatorTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,42 +87,42 @@ public static function providerValidateSignersCountFromFile(): array {
8787
DocMdpLevel::CERTIFIED_NO_CHANGES_ALLOWED,
8888
'hash',
8989
[
90-
['identify' => ['email' => 'one@example.com']],
90+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
9191
],
9292
true,
9393
],
9494
'no-changes forbids multiple signers' => [
9595
DocMdpLevel::CERTIFIED_NO_CHANGES_ALLOWED,
9696
'',
9797
[
98-
['identify' => ['email' => 'one@example.com']],
99-
['identify' => ['email' => 'two@example.com']],
98+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
99+
['identifyMethods' => [['method' => 'email', 'value' => 'two@example.com']]],
100100
],
101101
true,
102102
],
103103
'no-changes allows single signer before signing' => [
104104
DocMdpLevel::CERTIFIED_NO_CHANGES_ALLOWED,
105105
'',
106106
[
107-
['identify' => ['email' => 'one@example.com']],
107+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
108108
],
109109
false,
110110
],
111111
'docmdp level 2 allows multiple signers after signing' => [
112112
DocMdpLevel::CERTIFIED_FORM_FILLING,
113113
'hash',
114114
[
115-
['identify' => ['email' => 'one@example.com']],
116-
['identify' => ['email' => 'two@example.com']],
115+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
116+
['identifyMethods' => [['method' => 'email', 'value' => 'two@example.com']]],
117117
],
118118
false,
119119
],
120120
'docmdp level 3 allows multiple signers after signing' => [
121121
DocMdpLevel::CERTIFIED_FORM_FILLING_AND_ANNOTATIONS,
122122
'hash',
123123
[
124-
['identify' => ['email' => 'one@example.com']],
125-
['identify' => ['email' => 'two@example.com']],
124+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
125+
['identifyMethods' => [['method' => 'email', 'value' => 'two@example.com']]],
126126
],
127127
false,
128128
],
@@ -154,8 +154,8 @@ public function testValidateSignersCountUsesConfigWhenUuidMissing(): void {
154154

155155
$validator->validateSignersCount([
156156
'signers' => [
157-
['identify' => ['email' => 'one@example.com']],
158-
['identify' => ['email' => 'two@example.com']],
157+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
158+
['identifyMethods' => [['method' => 'email', 'value' => 'two@example.com']]],
159159
],
160160
]);
161161
}
@@ -179,8 +179,8 @@ public function testValidateSignersCountFallsBackToConfigWhenDocMdpLevelZero():
179179
$validator->validateSignersCount([
180180
'uuid' => 'uuid-1',
181181
'signers' => [
182-
['identify' => ['email' => 'one@example.com']],
183-
['identify' => ['email' => 'two@example.com']],
182+
['identifyMethods' => [['method' => 'email', 'value' => 'one@example.com']]],
183+
['identifyMethods' => [['method' => 'email', 'value' => 'two@example.com']]],
184184
],
185185
]);
186186
}

0 commit comments

Comments
 (0)