You are here

function Braintree_TextNodeTest::testEndsWith in Commerce Braintree 7

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

File

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

Class

Braintree_TextNodeTest

Code

function testEndsWith() {
  $node = new Braintree_TextNode('field');
  $node
    ->endsWith('end');
  $this
    ->assertEquals(array(
    'ends_with' => 'end',
  ), $node
    ->toParam());
}