You are here

class Braintree_SubscriptionSearchTest in Commerce Braintree 7

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

Hierarchy

Expanded class hierarchy of Braintree_SubscriptionSearchTest

File

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

View source
class Braintree_SubscriptionSearchTest extends PHPUnit_Framework_TestCase {
  function testSearch_billingCyclesRemaining_isRangeNode() {
    $node = Braintree_SubscriptionSearch::billingCyclesRemaining();
    $this
      ->assertType('Braintree_RangeNode', $node);
  }
  function testSearch_price_isRangeNode() {
    $node = Braintree_SubscriptionSearch::price();
    $this
      ->assertType('Braintree_RangeNode', $node);
  }
  function testSearch_daysPastDue_isRangeNode() {
    $node = Braintree_SubscriptionSearch::daysPastDue();
    $this
      ->assertType('Braintree_RangeNode', $node);
  }
  function testSearch_id_isTextNode() {
    $node = Braintree_SubscriptionSearch::id();
    $this
      ->assertType('Braintree_TextNode', $node);
  }
  function testSearch_ids_isMultipleValueNode() {
    $node = Braintree_SubscriptionSearch::ids();
    $this
      ->assertType('Braintree_MultipleValueNode', $node);
  }
  function testSearch_inTrialPeriod_isMultipleValueNode() {
    $node = Braintree_SubscriptionSearch::inTrialPeriod();
    $this
      ->assertType('Braintree_MultipleValueNode', $node);
  }
  function testSearch_merchantAccountId_isMultipleValueNode() {
    $node = Braintree_SubscriptionSearch::merchantAccountId();
    $this
      ->assertType('Braintree_MultipleValueNode', $node);
  }
  function testSearch_planId_isMultipleValueOrTextNode() {
    $node = Braintree_SubscriptionSearch::planId();
    $this
      ->assertType('Braintree_MultipleValueOrTextNode', $node);
  }
  function testSearch_status_isMultipleValueNode() {
    $node = Braintree_SubscriptionSearch::status();
    $this
      ->assertType('Braintree_MultipleValueNode', $node);
  }

}

Members