You are here

function Braintree_TextNodeTest::testStartsWith in Commerce Braintree 7

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

File

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

Class

Braintree_TextNodeTest

Code

function testStartsWith() {
  $node = new Braintree_TextNode('field');
  $node
    ->startsWith('beginning');
  $this
    ->assertEquals(array(
    'starts_with' => 'beginning',
  ), $node
    ->toParam());
}