You are here

protected function PriceListKernelTestBase::setUp in Commerce Pricelist 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/PriceListKernelTestBase.php \Drupal\Tests\commerce_pricelist\Kernel\PriceListKernelTestBase::setUp()

Overrides CommerceKernelTestBase::setUp

File

tests/src/Kernel/PriceListKernelTestBase.php, line 36

Class

PriceListKernelTestBase
Provides a base class for Commerce kernel tests.

Namespace

Drupal\Tests\commerce_pricelist\Kernel

Code

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