Skip to content

Commit 99327e1

Browse files
author
David Stockton
committed
Fix for new merged unit tests
1 parent dabc031 commit 99327e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Message/AIMResponseTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public function testRefundSuccess()
107107
$this->assertTrue($response->isSuccessful());
108108
$this->assertSame('2184492509', $response->getTransactionReference());
109109
$this->assertSame('This transaction has been approved.', $response->getMessage());
110-
$this->assertSame('1', $response->getCode());
110+
$this->assertSame('Approved', $response->getCode());
111111
$this->assertSame('1', $response->getReasonCode());
112-
$this->assertSame('P', $response->getAVSCode());
112+
$this->assertSame('AVS not applicable for this transaction', $response->getAVSCode());
113113
}
114114

115115
public function testRefundFailure()
@@ -120,9 +120,9 @@ public function testRefundFailure()
120120
$this->assertFalse($response->isSuccessful());
121121
$this->assertSame('0', $response->getTransactionReference());
122122
$this->assertSame('The credit card number is invalid.', $response->getMessage());
123-
$this->assertSame('3', $response->getCode());
123+
$this->assertSame('Error', $response->getCode());
124124
$this->assertSame('6', $response->getReasonCode());
125125
$this->assertSame('', $response->getAuthorizationCode());
126-
$this->assertSame('P', $response->getAVSCode());
126+
$this->assertSame('AVS not applicable for this transaction', $response->getAVSCode());
127127
}
128128
}

0 commit comments

Comments
 (0)