You are here

function Braintree_TextNodeTest::testIs in Commerce Braintree 7

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

File

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

Class

Braintree_TextNodeTest

Code

function testIs() {
  $node = new Braintree_TextNode('field');
  $node
    ->is('value');
  $this
    ->assertEquals(array(
    'is' => 'value',
  ), $node
    ->toParam());
}