testGetProjectVirtualCurrencySettings()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
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 VirtualCurrencyTest extends AbstractAPITest
9
{
10
    public function testUpdateProjectVirtualCurrencySettings()
11
    {
12
        static::$xsollaClient->UpdateProjectVirtualCurrencySettings([
13
            'request' => [
14
                'vc_name' => [
15
                    'en' => 'name',
16
                ],
17
                'base' => [
18
                    'USD' => 0.9,
19
                ],
20
                'min' => 0.01,
21
                'max' => 100.2,
22
                'default_currency' => 'USD',
23
            ],
24
            'project_id' => static::$projectId,
25
        ]);
26
        static::assertTrue(true);
27
    }
28
29
    public function testGetProjectVirtualCurrencySettings()
30
    {
31
        $response = static::$xsollaClient->GetProjectVirtualCurrencySettings(['project_id' => static::$projectId]);
32
        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...
33
    }
34
}
35