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());