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