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