Skip to content

Commit

Permalink
Adding assertion for transactionReference.
Browse files Browse the repository at this point in the history
  • Loading branch information
aperdomo committed Mar 25, 2016
1 parent 67dbb77 commit c8c61b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/Message/ConvergeAuthorizeRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function testAuthorizeSuccess()
$this->assertTrue($response->isSuccessful());
$this->assertSame('APPROVED', $response->getMessage());
$this->assertSame('0', $response->getCode());
$this->assertSame('00000000-0000-0000-0000-00000000000', $response->getTransactionReference());
}

public function testAuthorizeNoVID()
Expand Down
3 changes: 1 addition & 2 deletions tests/Message/ConvergePurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public function testPurchaseSuccess()
$this->assertTrue($response->isSuccessful());
$this->assertSame('APPROVED', $response->getMessage());
$this->assertSame('0', $response->getCode());
$this->assertSame('00000000-0000-0000-0000-00000000000', $response->getTransactionReference());
}

public function testPurchaseNoVID()
{
$this->setMockHttpResponse('NoVIDFailureResponse.txt');
$response = $this->request->send();

$this->assertFalse($response->isSuccessful());
$this->assertSame('The VirtualMerchant ID was not supplied in the authorization request.', $response->getMessage());
$this->assertSame('4000', $response->getCode());
Expand All @@ -77,7 +77,6 @@ public function testPurchaseNoPIN()
{
$this->setMockHttpResponse('NoPINFailureResponse.txt');
$response = $this->request->send();

$this->assertFalse($response->isSuccessful());
$this->assertSame('The PIN was not supplied in the authorization request.', $response->getMessage());
$this->assertSame('4013', $response->getCode());
Expand Down

0 comments on commit c8c61b8

Please sign in to comment.