You are here

function Braintree_SubscriptionTest::testUpdate_doesNotAcceptBadAttributes in Commerce Braintree 7

File

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

Class

Braintree_SubscriptionTest

Code

function testUpdate_doesNotAcceptBadAttributes() {
  $this
    ->setExpectedException('InvalidArgumentException', 'invalid keys: bad');
  $result = Braintree_Subscription::update('id', array(
    'bad' => 'value',
  ));
}