| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testPrepare() |
||
| 13 | { |
||
| 14 | $this->createSigning(); |
||
| 15 | |||
| 16 | /** @var PrepareResult $result */ |
||
| 17 | $result = $this->client->get(new Prepare( |
||
| 18 | $this->signingToken, |
||
| 19 | self::SIGNER1_ID, |
||
| 20 | base64_encode(CERTIFICATE_SIGN) |
||
|
|
|||
| 21 | )); |
||
| 22 | |||
| 23 | $this->assertSame('ok', $result->getStatus()); |
||
| 24 | $this->assertSame('sha256', $result->getAlgorithm()); |
||
| 25 | $this->assertNotEmpty($result->getDtbs()); |
||
| 26 | $this->assertNotEmpty($result->getDtbsHash()); |
||
| 27 | |||
| 28 | return [ |
||
| 29 | 'dtbs' => $result->getDtbs(), |
||
| 30 | 'signingToken' => $this->signingToken, |
||
| 31 | ]; |
||
| 49 |