Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/astock/stock-api-libphp/test/src/Api/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/astock/stock-api-libphp/test/src/Api/Models/LicenseEntitlementQuotaTest.php
<?php

/**
 * Copyright 2017 Adobe Systems Incorporated. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 */

namespace AdobeStock\Api\Test;

use \AdobeStock\Api\Models\LicenseEntitlementQuota;
use \PHPUnit\Framework\TestCase;

class LicenseEntitlementQuotaTest extends TestCase
{
    /**
     * @var LicenseEntitlementQuota
     */
    private $_license_entitlement_quota;
    
    /**
     * LicenseEntitlementQuota Test data
     * @var array
     */
    private $_data = [
        'image_quota' => 1,
        'video_quota' => 1,
        'credits_quota' => 1,
        'standard_credits_quota' => 1,
        'premium_credits_quota' => 1,
        'universal_credits_quota' => 1,
    ];
    
    /**
     * @test
     * @before
     */
    public function initializeConstructorOfLicenseEntitlementQuota()
    {
        $this->_license_entitlement_quota = new LicenseEntitlementQuota($this->_data);
        $this->assertInstanceOf(LicenseEntitlementQuota::class, $this->_license_entitlement_quota);
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetImageQuota()
    {
        $this->_license_entitlement_quota->setImageQuota(2);
        $this->assertEquals(2, $this->_license_entitlement_quota->getImageQuota());
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetVideoQuota()
    {
        $this->_license_entitlement_quota->setVideoQuota(3);
        $this->assertEquals(3, $this->_license_entitlement_quota->getVideoQuota());
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetCreditsQuota()
    {
        $this->_license_entitlement_quota->setCreditsQuota(23);
        $this->assertEquals(23, $this->_license_entitlement_quota->getCreditsQuota());
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetStandardCreditQuota()
    {
        $this->_license_entitlement_quota->setStandardCreditQuota(23);
        $this->assertEquals(23, $this->_license_entitlement_quota->getStandardCreditQuota());
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetPremiumCreditsQuota()
    {
        $this->_license_entitlement_quota->setPremiumCreditsQuota(23);
        $this->assertEquals(23, $this->_license_entitlement_quota->getPremiumCreditsQuota());
    }
    
    /**
     * @test
     */
    public function setterGetterShouldSetGetUniversalCreditsQuota()
    {
        $this->_license_entitlement_quota->setUniversalCreditsQuota(23);
        $this->assertEquals(23, $this->_license_entitlement_quota->getUniversalCreditsQuota());
    }
}

Spamworldpro Mini