protected function PriceListKernelTestBase::setUp in Commerce Pricelist 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/PriceListKernelTestBase.php \Drupal\Tests\commerce_pricelist\Kernel\PriceListKernelTestBase::setUp()
Overrides CommerceKernelTestBase::setUp
3 calls to PriceListKernelTestBase::setUp()
- PriceListItemTest::setUp in tests/
src/ Kernel/ Entity/ PriceListItemTest.php - PriceListRepositoryTest::setUp in tests/
src/ Kernel/ PriceListRepositoryTest.php - PriceResolverTest::setUp in tests/
src/ Kernel/ PriceResolverTest.php
3 methods override PriceListKernelTestBase::setUp()
- PriceListItemTest::setUp in tests/
src/ Kernel/ Entity/ PriceListItemTest.php - PriceListRepositoryTest::setUp in tests/
src/ Kernel/ PriceListRepositoryTest.php - PriceResolverTest::setUp in tests/
src/ Kernel/ PriceResolverTest.php
File
- tests/
src/ Kernel/ PriceListKernelTestBase.php, line 36
Class
- PriceListKernelTestBase
- Provides a base class for price list kernel tests.
Namespace
Drupal\Tests\commerce_pricelist\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_product_variation');
$this
->installEntitySchema('commerce_product');
$this
->installEntitySchema('commerce_pricelist_item');
$this
->installEntitySchema('commerce_pricelist');
$this
->installConfig([
'commerce_product',
]);
$user = $this
->createUser();
$this->user = $this
->reloadEntity($user);
}