VirtualCurrencyTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testUpdateProjectVirtualCurrencySettings() 0 18 1
A testGetProjectVirtualCurrencySettings() 0 5 1
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