You are here

protected function CommerceFeedsKernelTestBase::setUp in Commerce Feeds 8

Overrides CommerceKernelTestBase::setUp

2 calls to CommerceFeedsKernelTestBase::setUp()
PriceTest::setUp in tests/src/Kernel/Target/PriceTest.php
ProductProcessorTest::setUp in tests/src/Kernel/Processor/ProductProcessorTest.php
2 methods override CommerceFeedsKernelTestBase::setUp()
PriceTest::setUp in tests/src/Kernel/Target/PriceTest.php
ProductProcessorTest::setUp in tests/src/Kernel/Processor/ProductProcessorTest.php

File

tests/src/Kernel/CommerceFeedsKernelTestBase.php, line 37

Class

CommerceFeedsKernelTestBase
Provides a base class for Commerce Feeds kernel tests.

Namespace

Drupal\Tests\commerce_feeds\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Install database schemes.
  $this
    ->installEntitySchema('feeds_feed');
  $this
    ->installEntitySchema('feeds_subscription');
  $this
    ->installEntitySchema('commerce_product_variation');
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installSchema('feeds', 'feeds_clean_list');
  $this
    ->installConfig([
    'commerce_product',
  ]);
  $user = $this
    ->createUser();
  $this->user = $this
    ->reloadEntity($user);
  $this->container
    ->get('current_user')
    ->setAccount($user);
}