From ce4c031e085f6f09045d8576eefb05ef61fa2ebe Mon Sep 17 00:00:00 2001 From: recca0120 Date: Mon, 9 Sep 2024 00:41:16 +0800 Subject: [PATCH] false --- .phpunit.result.cache | 2 +- src/Message/GetPaymentInfoResponse.php | 4 ++-- tests/Message/GetPaymentInfoRequestTest.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.phpunit.result.cache b/.phpunit.result.cache index f75e376..1062099 100644 --- a/.phpunit.result.cache +++ b/.phpunit.result.cache @@ -1 +1 @@ -{"version":1,"defects":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPayout":4,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchase":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchase":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmGetData":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmSend":1,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsGetData":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsSend":1,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsSend":3},"times":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchase":0.006,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPayout":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPayout":0.001,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testReceiveTransactionInfo":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testReceiveTransactionInfo":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetPaymentInfo":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsSend":0}} \ No newline at end of file +{"version":1,"defects":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPayout":4,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchase":4,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchase":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmGetData":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmSend":1,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsGetData":4,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsSend":1,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsSend":3,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testAtmSend":3},"times":{"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchase":0.012,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPayout":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetNameNotEmpty":0.001,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPayout":0.001,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetShortNameNotEmpty":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testGetDefaultParametersReturnsArray":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDefaultParametersHaveMatchingMethods":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testTestMode":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCurrency":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompleteAuthorize":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCapture":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsPurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCompletePurchase":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsRefund":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsVoid":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsCreateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsDeleteCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testSupportsUpdateCard":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompleteAuthorizeParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCaptureParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testPurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCompletePurchaseParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testRefundParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testVoidParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testCreateCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testDeleteCardParameters":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testUpdateCardParameters":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\AcceptNotificationRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\CompletePurchaseRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PayoutRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmGetData":0.001,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\PurchaseRequestTest::testCvsSend":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testReceiveTransactionInfo":0,"Omnipay\\Aerotow\\Tests\\CvsGatewayTest::testReceiveTransactionInfo":0,"Omnipay\\Aerotow\\Tests\\AtmGatewayTest::testGetPaymentInfo":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testAtmGetData":0.001,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testAtmSend":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsGetData":0,"Omnipay\\Aerotow\\Tests\\Message\\GetPaymentInfoRequestTest::testCvsSend":0}} \ No newline at end of file diff --git a/src/Message/GetPaymentInfoResponse.php b/src/Message/GetPaymentInfoResponse.php index 4e31a4c..1c30da9 100644 --- a/src/Message/GetPaymentInfoResponse.php +++ b/src/Message/GetPaymentInfoResponse.php @@ -14,7 +14,7 @@ class GetPaymentInfoResponse extends AbstractResponse implements RedirectRespons */ public function isSuccessful() { - return array_key_exists('Ordernum', $this->data); + return false; } /** @@ -44,6 +44,6 @@ public function getRedirectUrl() public function getReply() { - return $this->isSuccessful() ? 'OK' : 'FAIL'; + return 'OK'; } } diff --git a/tests/Message/GetPaymentInfoRequestTest.php b/tests/Message/GetPaymentInfoRequestTest.php index d63d6e0..c973f81 100644 --- a/tests/Message/GetPaymentInfoRequestTest.php +++ b/tests/Message/GetPaymentInfoRequestTest.php @@ -32,7 +32,7 @@ public function testAtmSend($results) $response = $results[0]; $options = $results[1]; - self::assertTrue($response->isSuccessful()); + self::assertFalse($response->isSuccessful()); self::assertFalse($response->isRedirect()); self::assertEquals($options['Ordernum'], $response->getTransactionId()); self::assertEquals($options, $response->getData()); @@ -64,7 +64,7 @@ public function testCvsSend($results) $response = $results[0]; $options = $results[1]; - self::assertTrue($response->isSuccessful()); + self::assertFalse($response->isSuccessful()); self::assertTrue($response->isRedirect()); self::assertEquals($options['Ordernum'], $response->getTransactionId()); self::assertEquals($options, $response->getData());