| @@ 31-47 (lines=17) @@ | ||
| 28 | private $currency = 'USD'; |
|
| 29 | private $testMode = true; |
|
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | parent::setUp(); |
|
| 34 | ||
| 35 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 36 | $this->request->initialize([ |
|
| 37 | 'purse' => $this->purse, |
|
| 38 | 'secret' => $this->secret, |
|
| 39 | 'returnUrl' => $this->returnUrl, |
|
| 40 | 'cancelUrl' => $this->cancelUrl, |
|
| 41 | 'notifyUrl' => $this->notifyUrl, |
|
| 42 | 'description' => $this->description, |
|
| 43 | 'amount' => $this->amount, |
|
| 44 | 'currency' => $this->currency, |
|
| 45 | 'testMode' => $this->testMode, |
|
| 46 | ]); |
|
| 47 | } |
|
| 48 | ||
| 49 | public function testGetData() |
|
| 50 | { |
|
| @@ 31-48 (lines=18) @@ | ||
| 28 | private $currency = 'USD'; |
|
| 29 | private $testMode = true; |
|
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | parent::setUp(); |
|
| 34 | ||
| 35 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 36 | $this->request->initialize([ |
|
| 37 | 'purse' => $this->purse, |
|
| 38 | 'secret' => $this->secret, |
|
| 39 | 'returnUrl' => $this->returnUrl, |
|
| 40 | 'cancelUrl' => $this->cancelUrl, |
|
| 41 | 'notifyUrl' => $this->notifyUrl, |
|
| 42 | 'description' => $this->description, |
|
| 43 | 'transactionId' => $this->transactionId, |
|
| 44 | 'amount' => $this->amount, |
|
| 45 | 'currency' => $this->currency, |
|
| 46 | 'testMode' => $this->testMode, |
|
| 47 | ]); |
|
| 48 | } |
|
| 49 | ||
| 50 | public function testSuccess() |
|
| 51 | { |
|