Completed
Push — develop ( d0e808...84afed )
by
unknown
17s queued 14s
created

CreateBatchTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\Signing;
3
4
use Dokobit\Gateway\Query\Signing\CreateBatch;
5
use Dokobit\Gateway\Result\Signing\CreateBatchResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class CreateBatchTest extends TestCase
9
{
10
    protected function setUp(): void
11
    {
12
        parent::setUp();
13
        $this->createSigning();
14
    }
15
16
    public function testSuccess()
17
    {
18
        /** @var CreateBatchResult $result */
19
        $result = $this->client->get(new CreateBatch(
20
            [
21
                [
22
                    'token' => $this->signingToken,
23
                    'signer_token' => $this->signerToken,
24
                ],
25
            ]
26
        ));
27
28
        $this->assertSame('ok', $result->getStatus());
29
        $this->assertNotEmpty($result->getToken());
30
    }
31
}
32