You are here

function Braintree_ConfigurationTest::testmerchantUrl in Commerce Braintree 7

File

braintree_php/tests/unit/ConfigurationTest.php, line 130

Class

Braintree_ConfigurationTest

Code

function testmerchantUrl() {
  Braintree_Configuration::merchantId('abc123');
  Braintree_Configuration::environment('sandbox');
  $mu = Braintree_Configuration::merchantUrl();
  $this
    ->assertEquals('https://sandbox.braintreegateway.com:443/merchants/abc123', $mu);
  Braintree_Configuration::reset();
}