You are here

protected function StockLocationTest::setUp in Commerce Stock 8

Overrides CommerceKernelTestBase::setUp

File

modules/local_storage/tests/src/Kernel/Entity/StockLocationTest.php, line 34

Class

StockLocationTest
Test the StockLocation entity.

Namespace

Drupal\Tests\commerce_stock_local\Kernel\Entity

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('commerce_stock_location_type');
  $this
    ->installEntitySchema('commerce_stock_location');
  $this
    ->installConfig([
    'commerce_stock',
  ]);
  $this
    ->installConfig([
    'commerce_stock_local',
  ]);
  $user = $this
    ->createUser();
  $this->user = $this
    ->reloadEntity($user);
}