/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/HttpTest.php (6238B)
setExpectedException('Braintree\Exception\Authentication'); $http = new Braintree\Http(Braintree\Configuration::$global); $http->get('/'); } catch (Braintree\Exception $e) { Braintree\Configuration::environment('development'); throw $e; } Braintree\Configuration::environment('development'); } public function testSandboxSSL() { try { Braintree\Configuration::environment('sandbox'); $this->setExpectedException('Braintree\Exception\Authentication'); $http = new Braintree\Http(Braintree\Configuration::$global); $http->get('/'); } catch (Braintree\Exception $e) { Braintree\Configuration::environment('development'); throw $e; } Braintree\Configuration::environment('development'); } public function testSandboxSSLWithExplicitVersionSet() { try { Braintree\Configuration::environment('sandbox'); Braintree\Configuration::sslVersion(6); $this->setExpectedException('Braintree\Exception\Authentication'); $http = new Braintree\Http(Braintree\Configuration::$global); $http->get('/'); } catch (Braintree\Exception $e) { Braintree\Configuration::environment('development'); Braintree\Configuration::sslVersion(null); throw $e; } Braintree\Configuration::environment('development'); Braintree\Configuration::sslVersion(null); } public function testSandboxSSLFailsWithIncompatibleSSLVersion() { try { Braintree\Configuration::environment('sandbox'); Braintree\Configuration::sslVersion(3); $this->setExpectedException('Braintree\Exception\SSLCertificate', null, 35); $http = new Braintree\Http(Braintree\Configuration::$global); $http->get('/'); } catch (Braintree\Exception $e) { Braintree\Configuration::environment('development'); Braintree\Configuration::sslVersion(null); throw $e; } Braintree\Configuration::environment('development'); Braintree\Configuration::sslVersion(null); } public function testSslError() { try { Braintree\Configuration::environment('sandbox'); $this->setExpectedException('Braintree\Exception\SSLCertificate', null, 3); $http = new Braintree\Http(Braintree\Configuration::$global); $http->_doUrlRequest('get', '/malformed_url'); } catch (Braintree\Exception $e) { Braintree\Configuration::environment('development'); throw $e; } Braintree\Configuration::environment('development'); } public function testAcceptGzipEncodingSetFalse() { $originalGzipEncoding = Braintree\Configuration::acceptGzipEncoding(); Braintree\Configuration::acceptGzipEncoding(false); try { $result = Braintree\Customer::create([ 'firstName' => 'Mike', 'lastName' => 'Jones', 'company' => 'Jones Co.', 'email' => 'mike.jones@example.com', 'phone' => '419.555.1234', 'fax' => '419.555.1235', 'website' => 'http://example.com' ]); $this->assertEquals(true, $result->success); $customer = $result->customer; $this->assertEquals('Mike', $customer->firstName); } catch(Braintree\Exception $e) { Braintree\Configuration::acceptGzipEncoding($originalGzipEncoding); throw $e; } Braintree\Configuration::acceptGzipEncoding($originalGzipEncoding); } public function testAcceptGzipEncodingSetToTrue() { $originalGzipEncoding = Braintree\Configuration::acceptGzipEncoding(); Braintree\Configuration::acceptGzipEncoding(true); try { $result = Braintree\Customer::create([ 'firstName' => 'Mike', 'lastName' => 'Jones', 'company' => 'Jones Co.', 'email' => 'mike.jones@example.com', 'phone' => '419.555.1234', 'fax' => '419.555.1235', 'website' => 'http://example.com' ]); $this->assertEquals(true, $result->success); $customer = $result->customer; $this->assertEquals('Mike', $customer->firstName); } catch(Braintree\Exception $e) { Braintree\Configuration::acceptGzipEncoding($originalGzipEncoding); throw $e; } Braintree\Configuration::acceptGzipEncoding($originalGzipEncoding); } public function testAuthorizationWithConfig() { $config = new Braintree\Configuration([ 'environment' => 'development', 'merchant_id' => 'integration_merchant_id', 'publicKey' => 'badPublicKey', 'privateKey' => 'badPrivateKey' ]); $http = new Braintree\Http($config); $result = $http->_doUrlRequest('GET', $config->baseUrl() . '/merchants/integration_merchant_id/customers'); $this->assertEquals(401, $result['status']); } public function testPostMultiPartUploadsFileSuccessfully() { $config = Braintree\Configuration::$global; $http = new Braintree\Http($config); $path = '/merchants/integration_merchant_id/document_uploads'; $params = [ 'document_upload[kind]' => 'evidence_document' ]; $file = fopen(dirname(__DIR__) . '/fixtures/bt_logo.png', 'rb'); $response = $http->postMultipart($path, $params, $file); $this->assertEquals('image/png', $response['documentUpload']['contentType']); $this->assertNotNull($response['documentUpload']['id']); } }