| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testSuccess() |
||
| 17 | { |
||
| 18 | /** @var AddSignerResult $result */ |
||
| 19 | $result = $this->client->get(new AddSigner( |
||
| 20 | $this->signingToken, |
||
| 21 | [ |
||
| 22 | [ |
||
| 23 | 'id' => self::SIGNER2_ID, |
||
| 24 | 'name' => 'Fleur', |
||
| 25 | 'surname' => 'Boland', |
||
| 26 | 'signing_purpose' => 'signature', |
||
| 27 | ], |
||
| 28 | ] |
||
| 29 | )); |
||
| 30 | |||
| 31 | $this->assertSame('ok', $result->getStatus()); |
||
| 32 | $signers = $result->getSigners(); |
||
| 33 | $this->assertNotEmpty($signers); |
||
| 34 | $this->assertArrayHasKey(self::SIGNER1_ID, $signers); |
||
| 35 | $this->assertArrayHasKey(self::SIGNER2_ID, $signers); |
||
| 36 | $this->assertNotEmpty($signers[self::SIGNER1_ID]); |
||
| 37 | $this->assertNotEmpty($signers[self::SIGNER2_ID]); |
||
| 38 | } |
||
| 40 |