function Braintree_CreditCardTest::testIsDefault in Commerce Braintree 7
File
- braintree_php/
tests/ unit/ CreditCardTest.php, line 19
Class
Code
function testIsDefault() {
$creditCard = Braintree_CreditCard::factory(array(
'default' => true,
));
$this
->assertTrue($creditCard
->isDefault());
$creditCard = Braintree_CreditCard::factory(array(
'default' => false,
));
$this
->assertFalse($creditCard
->isDefault());
}