Completed
Push — master ( 313249...11f8f0 )
by
unknown
12s
created

ReportsTest::testListPaymentsRegistry()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
1
<?php
2
3
namespace Xsolla\SDK\Tests\Integration\API;
4
5
/**
6
 * @group api
7
 */
8
class ReportsTest extends AbstractAPITest
9
{
10 View Code Duplication
    public function testSearchPaymentsRegistry()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
    {
12
        $response = static::$xsollaClient->SearchPaymentsRegistry(array(
13
            'format' => 'json',
14
            'type' => 'all',
15
            'limit' => 2,
16
            'offset' => 0,
17
        ));
18
        static::assertInternalType('array', $response);
19
    }
20
21 View Code Duplication
    public function testSearchPaymentsRegistryWithParams()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
22
    {
23
        $response = static::$xsollaClient->SearchPaymentsRegistry(array(
24
            'format' => 'json',
25
            'type' => 'all',
26
            'limit' => 2,
27
            'offset' => 0,
28
            'status' => 'created',
29
        ));
30
        static::assertInternalType('array', $response);
31
    }
32
33
    public function testListPaymentsRegistry()
34
    {
35
        $response = static::$xsollaClient->ListPaymentsRegistry(array(
36
            'format' => 'json',
37
            'datetime_from' => '2015-01-01',
38
            'datetime_to' => '2015-01-02',
39
            'in_transfer_currency' => false,
40
            'limit' => 2,
41
            'offset' => 0,
42
            'show_total' => true,
43
            'status' => 'done',
44
        ));
45
        static::assertInternalType('array', $response);
46
    }
47
48
    public function testListTransfersRegistry()
49
    {
50
        $response = static::$xsollaClient->ListTransfersRegistry();
51
        static::assertInternalType('array', $response);
52
    }
53
54
    public function testListReportsRegistry()
55
    {
56
        $response = static::$xsollaClient->ListReportsRegistry();
57
        static::assertInternalType('array', $response);
58
    }
59
60
    public function testCreateRefundRequest()
61
    {
62
        static::markTestIncomplete('We haven\'t payments in test account for refund testing.');
63
    }
64
}
65