mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Rename e2e to integration
This commit is contained in:
parent
78ba28c04b
commit
129eec6baa
16 changed files with 79 additions and 39 deletions
31
tests/integration/PHPUnit/TestCase.php
Normal file
31
tests/integration/PHPUnit/TestCase.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue