You are here

class Braintree_MultipleValueNodeTest in Commerce Braintree 7

Same name in this branch
  1. 7 braintree_php/tests/unit/MultipleValueNodeTest.php \Braintree_MultipleValueNodeTest
  2. 7 braintree_php/tests/integration/MultipleValueNodeTest.php \Braintree_MultipleValueNodeTest

Hierarchy

Expanded class hierarchy of Braintree_MultipleValueNodeTest

File

braintree_php/tests/unit/MultipleValueNodeTest.php, line 4

View source
class Braintree_MultipleValueNodeTest extends PHPUnit_Framework_TestCase {
  function testIs() {
    $node = new Braintree_MultipleValueNode('field');
    $node
      ->is('value');
    $this
      ->assertEquals(array(
      'value',
    ), $node
      ->toParam());
  }
  function testIn() {
    $node = new Braintree_MultipleValueNode('field');
    $node
      ->in(array(
      'firstValue',
      'secondValue',
    ));
    $this
      ->assertEquals(array(
      'firstValue',
      'secondValue',
    ), $node
      ->toParam());
  }

}

Members