Skip to content

Commit

Permalink
Pushing test changes (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
patilmadhuri1 authored Oct 28, 2024
1 parent fd78dec commit 59735cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cnp/sdk/Test/functional/CnpRequestFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function test_addBatch()
$this->assertFalse(file_exists($fn2));


$expected = '<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.37.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"depositTransactionReversalAmount="0"numDepositTransactionReversals="0"refundTransactionReversalAmount="0"numRefundTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
$expected = '<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.40.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"depositTransactionReversalAmount="0"numDepositTransactionReversals="0"refundTransactionReversalAmount="0"numRefundTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<sale reportGroup="Planets" id="1211"><orderId>2111</orderId><amount>123</amount><orderSource>ecommerce</orderSource>
<card><type>VI</type><number>4100000000000000</number><expDate>1213</expDate><cardValidationNum>1213</cardValidationNum></card></sale>
</batchRequest>';
Expand Down Expand Up @@ -117,7 +117,7 @@ public function test_addRFRRequest()
'cnpSessionId' => '8675309'
));

$expected = '<cnpRequest numBatchRequests="0" version="12.37" xmlns="http://www.vantivcnp.com/schema">
$expected = '<cnpRequest numBatchRequests="0" version="12.40" xmlns="http://www.vantivcnp.com/schema">
<authentication><user>XXXXXX</user><password>XXXXXX</password></authentication>
<RFRRequest><cnpSessionId>8675309</cnpSessionId></RFRRequest>
</cnpRequest>';
Expand Down Expand Up @@ -169,10 +169,10 @@ public function test_closeRequest()
$this->assertFalse(file_exists($fn1));
$this->assertTrue(file_exists($request->request_file));

$expected = '<cnpRequest numBatchRequests="1" version="12.37" xmlns="http://www.vantivcnp.com/schema">
$expected = '<cnpRequest numBatchRequests="1" version="12.40" xmlns="http://www.vantivcnp.com/schema">
<authentication><user>XXXXX</user><password>XXXXX</password></authentication>
<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.37.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"depositTransactionReversalAmount="0"numDepositTransactionReversals="0"refundTransactionReversalAmount="0"numRefundTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.40.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"depositTransactionReversalAmount="0"numDepositTransactionReversals="0"refundTransactionReversalAmount="0"numRefundTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<sale reportGroup="Planets" id="1211"><orderId>2111</orderId><amount>123</amount><orderSource>ecommerce</orderSource>
<card><type>VI</type><number>4100000000000000</number><expDate>1213</expDate><cardValidationNum>1213</cardValidationNum></card></sale>
</batchRequest>
Expand Down

0 comments on commit 59735cf

Please sign in to comment.