You are here

protected function ProductVariationTitleGenerationTest::setUp in Commerce Core 8.2

Overrides ProductBrowserTestBase::setUp

File

modules/product/tests/src/Functional/ProductVariationTitleGenerationTest.php, line 30

Class

ProductVariationTitleGenerationTest
Tests the product variation title generation.

Namespace

Drupal\Tests\commerce_product\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->variationType = $this
    ->createEntity('commerce_product_variation_type', [
    'id' => 'test_default',
    'label' => 'Test Default',
    'orderItemType' => 'default',
  ]);
  $this->attributeFieldManager = $this->container
    ->get('commerce_product.attribute_field_manager');
}