| @@ 83-92 (lines=10) @@ | ||
| 80 | ]); |
|
| 81 | } |
|
| 82 | ||
| 83 | public function testGetData() |
|
| 84 | { |
|
| 85 | $data = $this->request->getData(); |
|
| 86 | ||
| 87 | $this->assertSame($this->description, $data['ok_item_1_name']); |
|
| 88 | $this->assertSame($this->transactionId, $data['ok_txn_id']); |
|
| 89 | $this->assertEquals($this->amount, $data['ok_txn_gross']); |
|
| 90 | $this->assertSame($this->timestamp, $data['ok_txn_datetime']); |
|
| 91 | $this->assertSame($this->purse, $data['ok_receiver']); |
|
| 92 | } |
|
| 93 | ||
| 94 | public function testSendData() |
|
| 95 | { |
|
| @@ 43-52 (lines=10) @@ | ||
| 40 | ]); |
|
| 41 | } |
|
| 42 | ||
| 43 | public function testGetData() |
|
| 44 | { |
|
| 45 | $data = $this->request->getData(); |
|
| 46 | ||
| 47 | $this->assertSame($this->purse, $data['ok_receiver']); |
|
| 48 | $this->assertSame($this->description, $data['ok_item_1_name']); |
|
| 49 | $this->assertSame($this->transactionId, $data['ok_invoice']); |
|
| 50 | $this->assertSame($this->amount, $data['ok_item_1_price']); |
|
| 51 | $this->assertSame($this->currency, $data['ok_currency']); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function testSendData() |
|
| 55 | { |
|