| @@ 109-117 (lines=9) @@ | ||
| 106 | /** |
|
| 107 | * @depends testDeleteSubscriptionPlan |
|
| 108 | */ |
|
| 109 | public function testCreateSubscriptionProduct() |
|
| 110 | { |
|
| 111 | $response = static::$xsollaClient->CreateSubscriptionProduct(array( |
|
| 112 | 'project_id' => static::$projectId, |
|
| 113 | 'request' => $this->product, |
|
| 114 | )); |
|
| 115 | static::assertArrayHasKey('product_id', $response); |
|
| 116 | static::$productId = $response['product_id']; |
|
| 117 | } |
|
| 118 | ||
| 119 | /** |
|
| 120 | * @depends testCreateSubscriptionProduct |
|
| @@ 122-130 (lines=9) @@ | ||
| 119 | /** |
|
| 120 | * @depends testCreateSubscriptionProduct |
|
| 121 | */ |
|
| 122 | public function testUpdateSubscriptionProduct() |
|
| 123 | { |
|
| 124 | $response = static::$xsollaClient->UpdateSubscriptionProduct(array( |
|
| 125 | 'project_id' => static::$projectId, |
|
| 126 | 'product_id' => static::$productId, |
|
| 127 | 'request' => $this->product, |
|
| 128 | )); |
|
| 129 | static::assertInternalType('array', $response); |
|
| 130 | } |
|
| 131 | ||
| 132 | /** |
|
| 133 | * @depends testUpdateSubscriptionProduct |
|