| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function test_notification() { |
||
| 10 | $notification = new Notification(); |
||
| 11 | $notification->set_date( new DateTime() ); |
||
| 12 | $notification->set_transaction_id( '1234567890' ); |
||
| 13 | $notification->set_purchase_id( '123456' ); |
||
| 14 | $notification->set_status( Statuses::SUCCESS ); |
||
| 15 | |||
| 16 | $this->assertInstanceOf( 'DateTime', $notification->get_date() ); |
||
| 17 | $this->assertEquals( '1234567890', $notification->get_transaction_id() ); |
||
| 18 | $this->assertEquals( '123456', $notification->get_purchase_id() ); |
||
| 19 | $this->assertEquals( Statuses::SUCCESS, $notification->get_status() ); |
||
| 20 | } |
||
| 22 |