| @@ 10-17 (lines=8) @@ | ||
| 7 | */ |
|
| 8 | class PaymentAccountsTest extends AbstractAPITest |
|
| 9 | { |
|
| 10 | public function testListPaymentAccounts() |
|
| 11 | { |
|
| 12 | $response = static::$xsollaClient->ListPaymentAccounts([ |
|
| 13 | 'project_id' => static::$projectId, |
|
| 14 | 'user_id' => static::$userId, |
|
| 15 | ]); |
|
| 16 | static::assertInternalType('array', $response); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function testChargePaymentAccount() |
|
| 20 | { |
|
| @@ 18-25 (lines=8) @@ | ||
| 15 | static::markTestIncomplete('Delete user API method not implemented yet. We should not create new users infinitely.'); |
|
| 16 | } |
|
| 17 | ||
| 18 | public function testGetWalletUser() |
|
| 19 | { |
|
| 20 | $response = static::$xsollaClient->GetWalletUser([ |
|
| 21 | 'project_id' => static::$projectId, |
|
| 22 | 'user_id' => static::$userId, |
|
| 23 | ]); |
|
| 24 | static::assertInternalType('array', $response); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function testUpdateWalletUser() |
|
| 28 | { |
|
| @@ 186-193 (lines=8) @@ | ||
| 183 | static::markTestIncomplete('We haven\'t active subscriptions in test project.'); |
|
| 184 | } |
|
| 185 | ||
| 186 | public function testListSubscriptions() |
|
| 187 | { |
|
| 188 | $response = static::$xsollaClient->ListSubscriptions([ |
|
| 189 | 'project_id' => static::$projectId, |
|
| 190 | 'user_id' => static::$userId, |
|
| 191 | ]); |
|
| 192 | static::assertInternalType('array', $response); |
|
| 193 | } |
|
| 194 | ||
| 195 | public function testListSubscriptionWithParams() |
|
| 196 | { |
|
| @@ 206-213 (lines=8) @@ | ||
| 203 | static::assertInternalType('array', $response); |
|
| 204 | } |
|
| 205 | ||
| 206 | public function testListUserSubscriptionPayments() |
|
| 207 | { |
|
| 208 | $response = static::$xsollaClient->ListUserSubscriptionPayments([ |
|
| 209 | 'project_id' => static::$projectId, |
|
| 210 | 'user_id' => static::$userId, |
|
| 211 | ]); |
|
| 212 | static::assertInternalType('array', $response); |
|
| 213 | } |
|
| 214 | ||
| 215 | public function testListSubscriptionPayments() |
|
| 216 | { |
|