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

UploadFromUrlTest::testSuccess()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 10
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\File;
3
4
use Dokobit\Gateway\Query\File\UploadFromUrl;
5
use Dokobit\Gateway\Result\File\UploadResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class UploadFromUrlTest extends TestCase
9
{
10
    public function testSuccess()
11
    {
12
        /** @var UploadResult $result */
13
        $result = $this->client->get(new UploadFromUrl(
14
            'https://gateway-sandbox.dokobit.com/Resources/test.pdf',
15
            'a50edb61f4bbdce166b752dbd3d3c434fb2de1ab'
16
        ));
17
18
        $this->assertSame('ok', $result->getStatus());
19
        $this->assertNotEmpty($result->getToken());
20
    }
21
}
22