protected function CouponTest::setUp in Commerce Core 8.2
Same name in this branch
- 8.2 modules/promotion/tests/src/Functional/CouponTest.php \Drupal\Tests\commerce_promotion\Functional\CouponTest::setUp()
- 8.2 modules/promotion/tests/src/Kernel/Entity/CouponTest.php \Drupal\Tests\commerce_promotion\Kernel\Entity\CouponTest::setUp()
Overrides OrderKernelTestBase::setUp
File
- modules/
promotion/ tests/ src/ Kernel/ Entity/ CouponTest.php, line 33
Class
- CouponTest
- Tests the Coupon entity.
Namespace
Drupal\Tests\commerce_promotion\Kernel\EntityCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_promotion');
$this
->installEntitySchema('commerce_promotion_coupon');
$this
->installSchema('commerce_promotion', [
'commerce_promotion_usage',
]);
$this
->installConfig([
'commerce_promotion',
]);
}