protected function ProductVariationTest::setUp in Commerce Core 8.2
Overrides CommerceKernelTestBase::setUp
File
- modules/
product/ tests/ src/ Kernel/ Entity/ ProductVariationTest.php, line 45
Class
- ProductVariationTest
- Tests the Product variation entity.
Namespace
Drupal\Tests\commerce_product\Kernel\EntityCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_product_attribute_value');
$this
->installConfig([
'commerce_product',
]);
$user = $this
->createUser();
$this->user = $this
->reloadEntity($user);
}