| @@ 21-31 (lines=11) @@ | ||
| 18 | static::assertInternalType('array', $actualCouponData); |
|
| 19 | } |
|
| 20 | ||
| 21 | public function testRedeemCoupon() |
|
| 22 | { |
|
| 23 | $actualCouponData = $this->xsollaClient->RedeemCoupon(array( |
|
| 24 | 'project_id' => $this->projectId, |
|
| 25 | 'code' => $_SERVER['COUPON_CODE'], |
|
| 26 | 'request' => array( |
|
| 27 | 'user_id' => 1, |
|
| 28 | ), |
|
| 29 | )); |
|
| 30 | static::assertInternalType('array', $actualCouponData); |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||
| @@ 10-17 (lines=8) @@ | ||
| 7 | */ |
|
| 8 | class PaymentAccountsTest extends AbstractAPITest |
|
| 9 | { |
|
| 10 | public function testListPaymentAccounts() |
|
| 11 | { |
|
| 12 | $response = $this->xsollaClient->ListPaymentAccounts(array( |
|
| 13 | 'project_id' => $this->projectId, |
|
| 14 | 'user_id' => 'Game User', |
|
| 15 | )); |
|
| 16 | static::assertInternalType('array', $response); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function testChargePaymentAccount() |
|
| 20 | { |
|
| @@ 40-48 (lines=9) @@ | ||
| 37 | )); |
|
| 38 | } |
|
| 39 | ||
| 40 | public function testListWalletUsers() |
|
| 41 | { |
|
| 42 | $response = $this->xsollaClient->ListWalletUsers(array( |
|
| 43 | 'project_id' => $this->projectId, |
|
| 44 | 'limit' => 1, |
|
| 45 | 'offset' => 0, |
|
| 46 | )); |
|
| 47 | static::assertInternalType('array', $response); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testListWalletUserOperations() |
|
| 51 | { |
|
| @@ 50-59 (lines=10) @@ | ||
| 47 | static::assertInternalType('array', $response); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testListWalletUserOperations() |
|
| 51 | { |
|
| 52 | $response = $this->xsollaClient->ListWalletUserOperations(array( |
|
| 53 | 'project_id' => $this->projectId, |
|
| 54 | 'user_id' => self::USER_ID, |
|
| 55 | 'datetime_from' => '2015-01-01T00:00:00 UTC', |
|
| 56 | 'datetime_to' => '2016-01-01T00:00:00 UTC', |
|
| 57 | )); |
|
| 58 | static::assertInternalType('array', $response); |
|
| 59 | } |
|
| 60 | ||
| 61 | public function testRechargeWalletUserBalance() |
|
| 62 | { |
|