Rename e2e to integration

This commit is contained in:
Emili Castells Guasch 2025-03-12 18:14:01 +01:00
parent 78ba28c04b
commit 129eec6baa
16 changed files with 79 additions and 39 deletions

View 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;
}
}