protected function CommerceProductBundleKernelTestBase::setUp in Commerce Product Bundle 8
Overrides CommerceKernelTestBase::setUp
2 calls to CommerceProductBundleKernelTestBase::setUp()
- BundleItemOrderItemTest::setUp in tests/
src/ Kernel/ Entity/ BundleItemOrderItemTest.php - ProductBundleStockKernelTestBase::setUp in modules/
commerce_product_bundle_stock/ tests/ src/ Kernel/ ProductBundleStockKernelTestBase.php - @requires module commerce_stock
2 methods override CommerceProductBundleKernelTestBase::setUp()
- BundleItemOrderItemTest::setUp in tests/
src/ Kernel/ Entity/ BundleItemOrderItemTest.php - ProductBundleStockKernelTestBase::setUp in modules/
commerce_product_bundle_stock/ tests/ src/ Kernel/ ProductBundleStockKernelTestBase.php - @requires module commerce_stock
File
- tests/
src/ Kernel/ CommerceProductBundleKernelTestBase.php, line 53
Class
- CommerceProductBundleKernelTestBase
- Provides a base class for Commerce Product Bundle tests.
Namespace
Drupal\Tests\commerce_product_bundle\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product_variation_type');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_product_type');
$this
->installEntitySchema('commerce_product_bundle');
$this
->installEntitySchema('commerce_product_bundle_type');
$this
->installEntitySchema('commerce_product_bundle_i');
$this
->installEntitySchema('commerce_product_bundle_i_type');
$this
->installEntitySchema('profile');
$this
->installEntitySchema('commerce_order');
$this
->installEntitySchema('commerce_order_item');
$this
->installConfig([
'commerce_number_pattern',
'commerce_order',
'commerce_product',
'commerce_product_bundle',
]);
$user = $this
->createUser([], [
'view commerce_product',
]);
$this->user = $this
->reloadEntity($user);
$this
->drupalSetCurrentUser($this->user);
}