You are here

function Braintree_TransactionAdvancedSearchTest::test_multipleValueNode_createdUsing_allowedValues in Commerce Braintree 7

File

braintree_php/tests/integration/TransactionAdvancedSearchTest.php, line 312

Class

Braintree_TransactionAdvancedSearchTest

Code

function test_multipleValueNode_createdUsing_allowedValues() {
  $this
    ->setExpectedException('InvalidArgumentException', 'Invalid argument(s) for created_using: noSuchCreatedUsing');
  $collection = Braintree_Transaction::search(array(
    Braintree_TransactionSearch::createdUsing()
      ->is('noSuchCreatedUsing'),
  ));
}