Passed
Pull Request — develop (#19)
by Paulius
02:32
created

DeleteTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSuccess() 0 8 1
A setUp() 0 4 1
1
<?php
2
namespace Dokobit\Gateway\Tests\Integration\Signing;
3
4
use Dokobit\Gateway\Query\Signing\Delete;
5
use Dokobit\Gateway\Result\Signing\DeleteResult;
6
use Dokobit\Gateway\Tests\Integration\TestCase;
7
8
class DeleteTest extends TestCase
9
{
10
    protected function setUp(): void
11
    {
12
        parent::setUp();
13
        $this->createSigning();
14
    }
15
16
    public function testSuccess()
17
    {
18
        /** @var DeleteResult $result */
19
        $result = $this->client->get(new Delete(
20
            $this->signingToken
21
        ));
22
23
        $this->assertSame('ok', $result->getStatus());
24
    }
25
}
26