PHP 7.4.33
Preview: SubscriptionSearchTest.php Size: 2.17 KB
/home/godevadmin/www/admin/braintree/final/braintree_php-master/tests/unit/SubscriptionSearchTest.php

<?php
namespace Test\Unit;

require_once dirname(__DIR__) . '/Setup.php';

use Test\Setup;
use Braintree;

class SubscriptionSearchTest extends Setup
{
    public function testSearch_billingCyclesRemaining_isRangeNode()
    {
        $node = Braintree\SubscriptionSearch::billingCyclesRemaining();
        $this->assertInstanceOf('Braintree\RangeNode', $node);
    }

    public function testSearch_price_isRangeNode()
    {
        $node = Braintree\SubscriptionSearch::price();
        $this->assertInstanceOf('Braintree\RangeNode', $node);
    }

    public function testSearch_daysPastDue_isRangeNode()
    {
        $node = Braintree\SubscriptionSearch::daysPastDue();
        $this->assertInstanceOf('Braintree\RangeNode', $node);
    }

    public function testSearch_createdAt_isRangeNode()
    {
        $node = Braintree\SubscriptionSearch::createdAt();
        $this->assertInstanceOf('Braintree\RangeNode', $node);
    }

    public function testSearch_id_isTextNode()
    {
        $node = Braintree\SubscriptionSearch::id();
        $this->assertInstanceOf('Braintree\TextNode', $node);
    }

    public function testSearch_ids_isMultipleValueNode()
    {
        $node = Braintree\SubscriptionSearch::ids();
        $this->assertInstanceOf('Braintree\MultipleValueNode', $node);
    }

    public function testSearch_inTrialPeriod_isMultipleValueNode()
    {
        $node = Braintree\SubscriptionSearch::inTrialPeriod();
        $this->assertInstanceOf('Braintree\MultipleValueNode', $node);
    }

    public function testSearch_merchantAccountId_isMultipleValueNode()
    {
        $node = Braintree\SubscriptionSearch::merchantAccountId();
        $this->assertInstanceOf('Braintree\MultipleValueNode', $node);
    }

    public function testSearch_planId_isMultipleValueOrTextNode()
    {
        $node = Braintree\SubscriptionSearch::planId();
        $this->assertInstanceOf('Braintree\MultipleValueOrTextNode', $node);
    }

    public function testSearch_status_isMultipleValueNode()
    {
        $node = Braintree\SubscriptionSearch::status();
        $this->assertInstanceOf('Braintree\MultipleValueNode', $node);
    }
}

Directory Contents

Dirs: 2 × Files: 33

Name Size Perms Modified Actions
ClientApi DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
Result DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
921 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
2.32 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
726 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
17.92 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
5.10 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
769 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.95 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
3.57 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
647 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.38 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
962 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.66 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.09 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
3.12 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
590 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.49 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.97 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
3.59 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.32 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.03 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
2.98 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
534 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
2.17 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
528 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.10 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
4.32 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
1.04 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
795 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
508 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
7.99 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
23.05 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
3.04 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
18.76 KB lrwxrwxr-x 2023-11-07 19:59:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).