From 6c4cef5b5168a58476eef6fa73b7875e15c94b6f Mon Sep 17 00:00:00 2001 From: Del Date: Wed, 13 Jan 2016 12:00:45 +0800 Subject: [PATCH] Fixing unit tests caused by card reference changes --- tests/Message/AuthorizeRequestTest.php | 2 +- tests/Message/PurchaseRequestTest.php | 2 +- tests/Message/ResponseTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Message/AuthorizeRequestTest.php b/tests/Message/AuthorizeRequestTest.php index 7f67042e..1151fe00 100644 --- a/tests/Message/AuthorizeRequestTest.php +++ b/tests/Message/AuthorizeRequestTest.php @@ -109,7 +109,7 @@ public function testSendSuccess() $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); + $this->assertSame('card_16n3EU2baUhq7QENSrstkoN0', $response->getCardReference()); $this->assertNull($response->getMessage()); } diff --git a/tests/Message/PurchaseRequestTest.php b/tests/Message/PurchaseRequestTest.php index b55d0b99..d290e264 100644 --- a/tests/Message/PurchaseRequestTest.php +++ b/tests/Message/PurchaseRequestTest.php @@ -32,7 +32,7 @@ public function testSendSuccess() $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); + $this->assertSame('card_16n3EU2baUhq7QENSrstkoN0', $response->getCardReference()); $this->assertNull($response->getMessage()); } diff --git a/tests/Message/ResponseTest.php b/tests/Message/ResponseTest.php index 48146e34..54390bb1 100644 --- a/tests/Message/ResponseTest.php +++ b/tests/Message/ResponseTest.php @@ -14,7 +14,7 @@ public function testPurchaseSuccess() $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('ch_1IU9gcUiNASROd', $response->getTransactionReference()); - $this->assertNull($response->getCardReference()); + $this->assertSame('card_16n3EU2baUhq7QENSrstkoN0', $response->getCardReference()); $this->assertNull($response->getMessage()); $this->assertInternalType('array', $response->getSource()); }