mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
31 lines
622 B
PHP
31 lines
622 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Tests\Integration;
|
|
|
|
use WooCommerce\PayPalCommerce\PPCP;
|
|
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
|
|
use WC_Cart;
|
|
use WC_Customer;
|
|
use WC_Session;
|
|
|
|
class TestCase extends \PHPUnit\Framework\TestCase
|
|
{
|
|
protected $container;
|
|
|
|
protected function getContainer(): ContainerInterface {
|
|
return PPCP::container();
|
|
}
|
|
|
|
protected function cart(): WC_Cart {
|
|
return WC()->cart;
|
|
}
|
|
|
|
protected function customer(): WC_Customer {
|
|
return WC()->customer;
|
|
}
|
|
|
|
protected function session(): WC_Session {
|
|
return WC()->session;
|
|
}
|
|
}
|