protected function CouponStorageTest::setUp in Commerce Core 8.2
Overrides OrderKernelTestBase::setUp
File
- modules/
promotion/ tests/ src/ Kernel/ CouponStorageTest.php, line 34
Class
- CouponStorageTest
- Tests coupon storage.
Namespace
Drupal\Tests\commerce_promotion\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_promotion');
$this
->installEntitySchema('commerce_promotion_coupon');
$this
->installConfig([
'commerce_promotion',
]);
$this
->installSchema('commerce_promotion', [
'commerce_promotion_usage',
]);
$this->couponStorage = $this->container
->get('entity_type.manager')
->getStorage('commerce_promotion_coupon');
}