You are here

function Braintree_CreditCardTest::testFind_throwsUsefulErrorMessagesWhenInvalid in Commerce Braintree 7

File

braintree_php/tests/integration/CreditCardTest.php, line 633

Class

Braintree_CreditCardTest

Code

function testFind_throwsUsefulErrorMessagesWhenInvalid() {
  $this
    ->setExpectedException('InvalidArgumentException', '@ is an invalid credit card id');
  Braintree_CreditCard::find('@');
}