PriceListKernelTestBase.php in Commerce Pricelist 8.2
File
tests/src/Kernel/PriceListKernelTestBase.php
View source
<?php
namespace Drupal\Tests\commerce_pricelist\Kernel;
use Drupal\Tests\commerce\Kernel\CommerceKernelTestBase;
abstract class PriceListKernelTestBase extends CommerceKernelTestBase {
public static $modules = [
'path',
'commerce_product',
'commerce_pricelist',
];
protected $user;
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_pricelist_item');
$this
->installEntitySchema('commerce_pricelist');
$this
->installConfig([
'commerce_product',
]);
$user = $this
->createUser();
$this->user = $this
->reloadEntity($user);
}
}