/home/desid573/public_html/app/braintree/tests/integration
NameSizeModeActions
Error/-0755rm
Result/-0755rm
AddOnsTest.php29530644editdlrm
AddressTest.php128330644editdlrm
ApplePayTest.php25950644editdlrm
ClientTokenTest.php70160644editdlrm
CreditCardTest.php564890644editdlrm
CreditCardVerificationAdvancedSearchTest.php112090644editdlrm
CreditCardVerificationTest.php22660644editdlrm
CustomerAdvancedSearchTest.php76690644editdlrm
CustomerTest.php706950644editdlrm
DisbursementTest.php12060644editdlrm
DiscountTest.php30720644editdlrm
DisputeSearchTest.php37070644editdlrm
DisputeTest.php155170644editdlrm
DocumentUploadTest.php41850644editdlrm
GraphQLTest.php27850644editdlrm
HttpClientApi.php41700644editdlrm
HttpTest.php62380644editdlrm
IdealPaymentTest.php41410644editdlrm
MasterpassCardTest.php60220644editdlrm
MerchantAccountTest.php300400644editdlrm
MerchantTest.php101600644editdlrm
MultipleValueNodeTest.php33390644editdlrm
OAuthTest.php137320644editdlrm
PaymentMethodNonceTest.php79650644editdlrm
PaymentMethodTest.php696180644editdlrm
PaymentMethodWithUsBankAccountTest.php64830644editdlrm
PayPalAccountTest.php113000644editdlrm
PlanTest.php47570644editdlrm
SamsungPayCardTest.php87580644editdlrm
SettlementBatchSummaryTest.php34970644editdlrm
SubscriptionHelper.php24600644editdlrm
SubscriptionSearchTest.php178430644editdlrm
SubscriptionTest.php553940644editdlrm
TestTransactionTest.php28890644editdlrm
TextNodeTest.php53790644editdlrm
TransactionAdvancedSearchTest.php657420644editdlrm
TransactionLineItemTest.php14010644editdlrm
TransactionTest.php2413430644editdlrm
TransactionWithUsBankAccountTest.php118920644editdlrm
TransparentRedirectTest.php124570644editdlrm
UsBankAccountTest.php46910644editdlrm
UsBankAccountVerificationTest.php98960644editdlrm
VisaCheckoutCardTest.php70770644editdlrm
Edit: /home/desid573/public_html/app/braintree/tests/integration/IdealPaymentTest.php (4141B)
assertInstanceOf('Braintree\IdealPayment', $foundIdealPayment); $this->assertRegExp('/^idealpayment_\w{6,}$/', $foundIdealPayment->id); $this->assertRegExp('/^\d{16,}$/', $foundIdealPayment->idealTransactionId); $this->assertNotNull($foundIdealPayment->currency); $this->assertNotNull($foundIdealPayment->amount); $this->assertEquals('COMPLETE', $foundIdealPayment->status); $this->assertEquals('ABC123', $foundIdealPayment->orderId); $this->assertNotNull($foundIdealPayment->issuer); $this->assertRegExp('/^https:\/\//', $foundIdealPayment->approvalUrl); $this->assertNotNull($foundIdealPayment->ibanBankAccount->maskedIban); $this->assertNotNull($foundIdealPayment->ibanBankAccount->bic); $this->assertNotNull($foundIdealPayment->ibanBankAccount->ibanCountry); $this->assertNotNull($foundIdealPayment->ibanBankAccount->description); $this->assertRegExp('/^\d{4}$/', $foundIdealPayment->ibanBankAccount->ibanAccountNumberLast4); } public function testFindIdealPayment_throwsIfCannotBeFound() { $this->setExpectedException('Braintree\Exception\NotFound'); Braintree\IdealPayment::find(Test\Helper::generateInvalidIdealPaymentId()); } public function testSale_createsASaleUsingId() { $http = new HttpClientApi(Braintree\Configuration::$global); $idealPaymentId = Test\Helper::generateValidIdealPaymentId(); $result = Braintree\IdealPayment::sale($idealPaymentId, [ 'merchantAccountId' => 'ideal_merchant_account', 'amount' => '100.00', 'orderId' => 'ABC123' ]); $this->assertTrue($result->success); $transaction = $result->transaction; $this->assertEquals(Braintree\Transaction::SETTLED, $transaction->status); $this->assertEquals(Braintree\Transaction::SALE, $transaction->type); $this->assertEquals('100.00', $transaction->amount); $this->assertRegExp('/^idealpayment_\w{6,}$/', $transaction->idealPayment->idealPaymentId); $this->assertRegExp('/^\d{16,}$/', $transaction->idealPayment->idealTransactionId); $this->assertRegExp('/^https:\/\//', $transaction->idealPayment->imageUrl); $this->assertNotNull($transaction->idealPayment->maskedIban); $this->assertNotNull($transaction->idealPayment->bic); } public function testSale_createsASaleWithNotCompletePayment() { $http = new HttpClientApi(Braintree\Configuration::$global); $idealPaymentId = Test\Helper::generateValidIdealPaymentId('3.00'); $result = Braintree\IdealPayment::sale($idealPaymentId, [ 'merchantAccountId' => 'ideal_merchant_account', 'amount' => '3.00', 'orderId' => 'ABC123' ]); $this->assertFalse($result->success); $baseErrors = $result->errors->forKey('transaction')->onAttribute('paymentMethodNonce'); $this->assertEquals(Braintree\Error\Codes::TRANSACTION_IDEAL_PAYMENT_NOT_COMPLETE, $baseErrors[0]->code); } public function testSale_createsASaleUsingInvalidId() { $http = new HttpClientApi(Braintree\Configuration::$global); $result = Braintree\IdealPayment::sale('invalid_id', [ 'merchantAccountId' => 'ideal_merchant_account', 'amount' => '100.00', 'orderId' => 'ABC123' ]); $this->assertFalse($result->success); $baseErrors = $result->errors->forKey('transaction')->onAttribute('paymentMethodNonce'); $this->assertEquals(Braintree\Error\Codes::TRANSACTION_PAYMENT_METHOD_NONCE_UNKNOWN, $baseErrors[0]->code); } }