protected function ProductDefaultVariationEventTest::setUp in Commerce Core 8.2
Overrides CommerceKernelTestBase::setUp
File
- modules/
product/ tests/ src/ Kernel/ ProductDefaultVariationEventTest.php, line 32
Class
- ProductDefaultVariationEventTest
- Tests the default product variation event.
Namespace
Drupal\Tests\commerce_product\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installConfig('user');
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installConfig([
'commerce_product',
]);
user_role_grant_permissions(AccountInterface::ANONYMOUS_ROLE, [
'view commerce_product',
]);
user_role_grant_permissions(AccountInterface::AUTHENTICATED_ROLE, [
'view commerce_product',
]);
}