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

SupportTest::testListSupportTicketsWithParams()   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 SupportTest extends AbstractAPITest
9
{
10
    public function testListSupportTickets()
11
    {
12
        $response = static::$xsollaClient->ListSupportTickets();
13
        static::assertInternalType('array', $response);
14
    }
15
16
    public function testListSupportTicketsWithParams()
17
    {
18
        $response = static::$xsollaClient->ListSupportTickets(array(
19
            'merchant_id' => static::$merchantId,
20
            'datetime_from' => '2015-01-01T00:00:00Z',
21
            'datetime_to' => '2015-01-02T00:00:00Z',
22
            'status' => 'solved',
23
            'type' => 'question',
24
            'offset' => 0,
25
            'limit' => 100,
26
            'sender' => 'user',
27
        ));
28
        static::assertInternalType('array', $response);
29
    }
30
31
    public function testListSupportTicketComments()
32
    {
33
        static::markTestIncomplete('We haven\'t support tickets in test account for comments testing.');
34
    }
35
}
36