Passed
Branch develop (84afed)
by Paulius
02:35
created

UploadTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSuccess() 0 9 1
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\File;
3
4
use Dokobit\Gateway\Query\File\Upload;
5
use Dokobit\Gateway\Result\File\UploadResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class UploadTest extends TestCase
9
{
10
    public function testSuccess()
11
    {
12
        /** @var UploadResult $result */
13
        $result = $this->client->get(new Upload(
14
            __DIR__ . '/../../data/document.pdf'
15
        ));
16
17
        $this->assertSame('ok', $result->getStatus());
18
        $this->assertNotEmpty($result->getToken());
19
    }
20
}
21