You are here

function Braintree_TextNodeTest::testContains in Commerce Braintree 7

Same name in this branch
  1. 7 braintree_php/tests/unit/TextNodeTest.php \Braintree_TextNodeTest::testContains()
  2. 7 braintree_php/tests/integration/TextNodeTest.php \Braintree_TextNodeTest::testContains()

File

braintree_php/tests/unit/TextNodeTest.php, line 34

Class

Braintree_TextNodeTest

Code

function testContains() {
  $node = new Braintree_TextNode('field');
  $node
    ->contains('middle');
  $this
    ->assertEquals(array(
    'contains' => 'middle',
  ), $node
    ->toParam());
}