PriceListKernelTestBase.php in Commerce Pricelist 8
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() {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('price_list_item');
$this
->installEntitySchema('price_list');
$this
->installConfig([
'commerce_product',
'commerce_pricelist',
]);
$user = $this
->createUser();
$this->user = $this
->reloadEntity($user);
}
}