ReportsTest::testCreateRefundRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
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([
13
            'format' => 'json',
14
            'type' => 'all',
15
            'limit' => 2,
16
            'offset' => 0,
17
        ]);
18
        static::assertInternalType('array', $response);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
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([
24
            'format' => 'json',
25
            'type' => 'all',
26
            'limit' => 2,
27
            'offset' => 0,
28
            'status' => 'created',
29
        ]);
30
        static::assertInternalType('array', $response);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
31
    }
32
33
    public function testListPaymentsRegistry()
34
    {
35
        $response = static::$xsollaClient->ListPaymentsRegistry([
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);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
46
    }
47
48
    public function testListTransfersRegistry()
49
    {
50
        $response = static::$xsollaClient->ListTransfersRegistry();
51
        static::assertInternalType('array', $response);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
52
    }
53
54
    public function testListReportsRegistry()
55
    {
56
        $response = static::$xsollaClient->ListReportsRegistry();
57
        static::assertInternalType('array', $response);
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit\Framework\Assert::assertInternalType() has been deprecated with message: https://github.com/sebastianbergmann/phpunit/issues/3369

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
58
    }
59
60
    public function testCreateRefundRequest()
61
    {
62
        static::markTestIncomplete('We haven\'t payments in test account for refund testing.');
63
    }
64
}
65