You are here

protected function ProductVariationTypeTest::setUp in Commerce Core 8.2

Overrides ProductBrowserTestBase::setUp

File

modules/product/tests/src/Functional/ProductVariationTypeTest.php, line 17

Class

ProductVariationTypeTest
Tests the product variation type UI.

Namespace

Drupal\Tests\commerce_product\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->createEntity('commerce_product_attribute', [
    'id' => 'color',
    'label' => 'Color',
  ]);
  $this
    ->createEntity('commerce_product_attribute', [
    'id' => 'size',
    'label' => 'Size',
  ]);
}