CartKernelTestBase.php in Commerce Core 8.2
File
modules/cart/tests/src/Kernel/CartKernelTestBase.php
View source
<?php
namespace Drupal\Tests\commerce_cart\Kernel;
use Drupal\Tests\commerce_order\Kernel\OrderKernelTestBase;
abstract class CartKernelTestBase extends OrderKernelTestBase {
protected $cartManager;
protected $cartProvider;
public static $modules = [
'commerce_cart',
];
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'commerce_cart',
]);
$this->cartManager = $this->container
->get('commerce_cart.cart_manager');
$this->cartProvider = $this->container
->get('commerce_cart.cart_provider');
}
}