You are here

function Braintree_SubscriptionTest::testCancel_throwsErrorIfRecordNotFound in Commerce Braintree 7

File

braintree_php/tests/integration/SubscriptionTest.php, line 972

Class

Braintree_SubscriptionTest

Code

function testCancel_throwsErrorIfRecordNotFound() {
  $this
    ->setExpectedException('Braintree_Exception_NotFound');
  Braintree_Subscription::cancel('non-existing-id');
}