You are here

protected function CartAddResourceSelectStoreExceptionTest::setUp in Commerce Cart API 8

Overrides OrderKernelTestBase::setUp

File

tests/src/Kernel/CartAddResourceSelectStoreExceptionTest.php, line 31

Class

CartAddResourceSelectStoreExceptionTest
@group commerce_cart_api

Namespace

Drupal\Tests\commerce_cart_api\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('commerce_product');
  $this
    ->installEntitySchema('commerce_product_variation');
  EntityFormMode::create([
    'id' => 'commerce_order_item.add_to_cart',
    'label' => 'Add to cart',
    'targetEntityType' => 'commerce_order_item',
  ])
    ->save();
  $this
    ->installConfig([
    'commerce_product',
  ]);
}