Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Updates attribute check test
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 25, 2016
1 parent f2958c7 commit 2286c2c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use GuzzleHttp\Client;
use CraigPaul\Moneris\Crypt;
use CraigPaul\Moneris\Receipt;
use CraigPaul\Moneris\Moneris;
use CraigPaul\Moneris\Response;
use CraigPaul\Moneris\Processor;
Expand Down Expand Up @@ -109,10 +110,8 @@ public function it_can_receive_a_receipt_from_a_properly_processed_transaction()
$receipt = $response->receipt();

$this->assertNotNull($receipt);
$this->assertEquals(SimpleXMLElement::class, get_class($receipt));
$this->assertEquals($this->params['order_id'], $receipt->ReceiptId);
$this->assertObjectHasAttribute('TransID', $receipt);
$this->assertObjectHasAttribute('ReferenceNum', $receipt);
$this->assertObjectHasAttribute('Complete', $receipt);
$this->assertEquals(Receipt::class, get_class($receipt));
$this->assertEquals($this->params['order_id'], $receipt->read('id'));
$this->assertObjectHasAttribute('data', $receipt);
}
}

0 comments on commit 2286c2c

Please sign in to comment.