From c8c61b85414e5ccf991d9ec3f9da0ab42e7b3450 Mon Sep 17 00:00:00 2001 From: Andy Perdomo Date: Fri, 25 Mar 2016 10:17:34 -0700 Subject: [PATCH] Adding assertion for transactionReference. --- tests/Message/ConvergeAuthorizeRequestTest.php | 1 + tests/Message/ConvergePurchaseRequestTest.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Message/ConvergeAuthorizeRequestTest.php b/tests/Message/ConvergeAuthorizeRequestTest.php index b7a9856..3d836a9 100644 --- a/tests/Message/ConvergeAuthorizeRequestTest.php +++ b/tests/Message/ConvergeAuthorizeRequestTest.php @@ -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() diff --git a/tests/Message/ConvergePurchaseRequestTest.php b/tests/Message/ConvergePurchaseRequestTest.php index e8a0757..4954dd9 100644 --- a/tests/Message/ConvergePurchaseRequestTest.php +++ b/tests/Message/ConvergePurchaseRequestTest.php @@ -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()); @@ -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());