| @@ 53-62 (lines=10) @@ | ||
| 50 | static::assertInternalType('array', $response); |
|
| 51 | } |
|
| 52 | ||
| 53 | public function testListVirtualItemsWithParams() |
|
| 54 | { |
|
| 55 | $response = static::$xsollaClient->ListVirtualItems([ |
|
| 56 | 'project_id' => static::$projectId, |
|
| 57 | 'offset' => 0, |
|
| 58 | 'limit' => 100, |
|
| 59 | 'has_price' => 'virtual_currency', |
|
| 60 | ]); |
|
| 61 | static::assertInternalType('array', $response); |
|
| 62 | } |
|
| 63 | ||
| 64 | public function testCreateVirtualItemsGroup() |
|
| 65 | { |
|
| @@ 39-47 (lines=9) @@ | ||
| 36 | static::assertTrue(true); |
|
| 37 | } |
|
| 38 | ||
| 39 | public function testListWalletUsers() |
|
| 40 | { |
|
| 41 | $response = static::$xsollaClient->ListWalletUsers([ |
|
| 42 | 'project_id' => static::$projectId, |
|
| 43 | 'limit' => 1, |
|
| 44 | 'offset' => 0, |
|
| 45 | ]); |
|
| 46 | static::assertInternalType('array', $response); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function testListWalletUsersWithParams() |
|
| 50 | { |
|
| @@ 49-58 (lines=10) @@ | ||
| 46 | static::assertInternalType('array', $response); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function testListWalletUsersWithParams() |
|
| 50 | { |
|
| 51 | $response = static::$xsollaClient->ListWalletUsers([ |
|
| 52 | 'project_id' => static::$projectId, |
|
| 53 | 'limit' => 1, |
|
| 54 | 'offset' => 0, |
|
| 55 | 'user_requisites' => static::$userId, |
|
| 56 | ]); |
|
| 57 | static::assertInternalType('array', $response); |
|
| 58 | } |
|
| 59 | ||
| 60 | public function testListWalletUserOperations() |
|
| 61 | { |
|
| @@ 60-69 (lines=10) @@ | ||
| 57 | static::assertInternalType('array', $response); |
|
| 58 | } |
|
| 59 | ||
| 60 | public function testListWalletUserOperations() |
|
| 61 | { |
|
| 62 | $response = static::$xsollaClient->ListWalletUserOperations([ |
|
| 63 | 'project_id' => static::$projectId, |
|
| 64 | 'user_id' => static::$userId, |
|
| 65 | 'datetime_from' => '2015-01-01T00:00:00Z', |
|
| 66 | 'datetime_to' => '2016-01-01T00:00:00Z', |
|
| 67 | ]); |
|
| 68 | static::assertInternalType('array', $response); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function testListWalletUserOperationsWithParams() |
|
| 72 | { |
|
| @@ 71-81 (lines=11) @@ | ||
| 68 | static::assertInternalType('array', $response); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function testListWalletUserOperationsWithParams() |
|
| 72 | { |
|
| 73 | $response = static::$xsollaClient->ListWalletUserOperations([ |
|
| 74 | 'project_id' => static::$projectId, |
|
| 75 | 'user_id' => static::$userId, |
|
| 76 | 'datetime_from' => '2015-01-01T00:00:00Z', |
|
| 77 | 'datetime_to' => '2016-01-01T00:00:00Z', |
|
| 78 | 'transaction_type' => 'payment', |
|
| 79 | ]); |
|
| 80 | static::assertInternalType('array', $response); |
|
| 81 | } |
|
| 82 | ||
| 83 | public function testRechargeWalletUserBalance() |
|
| 84 | { |
|
| @@ 126-135 (lines=10) @@ | ||
| 123 | /** |
|
| 124 | * @depends testAddVirtualItemToWalletUser |
|
| 125 | */ |
|
| 126 | public function testListWalletUserVirtualItems() |
|
| 127 | { |
|
| 128 | $response = static::$xsollaClient->ListWalletUserVirtualItems([ |
|
| 129 | 'project_id' => static::$projectId, |
|
| 130 | 'user_id' => static::$userId, |
|
| 131 | 'limit' => 1, |
|
| 132 | 'offset' => 0, |
|
| 133 | ]); |
|
| 134 | static::assertInternalType('array', $response); |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * @depends testAddVirtualItemToWalletUser |
|