You are here

function Braintree_ConfigurationTest::testSSLOn in Commerce Braintree 7

File

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

Class

Braintree_ConfigurationTest

Code

function testSSLOn() {
  Braintree_Configuration::environment('development');
  $on = Braintree_Configuration::sslOn();
  $this
    ->assertFalse($on);
  Braintree_Configuration::environment('sandbox');
  $on = Braintree_Configuration::sslOn();
  $this
    ->assertTrue($on);
  Braintree_Configuration::environment('production');
  $on = Braintree_Configuration::sslOn();
  $this
    ->assertTrue($on);
  Braintree_Configuration::reset();
}