AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/awebpaca/Dolibarr/htdocs/includes/stripe/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/awebpaca/Dolibarr/htdocs/includes/stripe/tests//ApplePayDomainTest.php
<?php

namespace Stripe;

class ApplePayDomainTest extends TestCase
{
    public function testCreation()
    {
        $this->mockRequest(
            'POST',
            '/v1/apple_pay/domains',
            array('domain_name' => 'test.com'),
            array(
                'id' => 'apwc_create',
                'object' => 'apple_pay_domain'
            )
        );
        $d = ApplePayDomain::create(array(
            'domain_name' => 'test.com'
        ));
        $this->assertSame('apwc_create', $d->id);
        $this->assertInstanceOf('Stripe\\ApplePayDomain', $d);
    }

    public function testRetrieve()
    {
        $this->mockRequest(
            'GET',
            '/v1/apple_pay/domains/apwc_retrieve',
            array(),
            array(
                'id' => 'apwc_retrieve',
                'object' => 'apple_pay_domain'
            )
        );
        $d = ApplePayDomain::retrieve('apwc_retrieve');
        $this->assertSame('apwc_retrieve', $d->id);
        $this->assertInstanceOf('Stripe\\ApplePayDomain', $d);
    }

    public function testDeletion()
    {
        self::authorizeFromEnv();
        $d = ApplePayDomain::create(array(
            'domain_name' => 'jackshack.website'
        ));
        $this->assertInstanceOf('Stripe\\ApplePayDomain', $d);
        $this->mockRequest(
            'DELETE',
            '/v1/apple_pay/domains/' . $d->id,
            array(),
            array('deleted' => true)
        );
        $d->delete();
        $this->assertTrue($d->deleted);
    }

    public function testList()
    {
        $this->mockRequest(
            'GET',
            '/v1/apple_pay/domains',
            array(),
            array(
                'url' => '/v1/apple_pay/domains',
                'object' => 'list'
            )
        );
        $all = ApplePayDomain::all();
        $this->assertSame($all->url, '/v1/apple_pay/domains');
    }
}

Anon7 - 2022
AnonSec Team