You are here

protected function CouponValidConstraintValidatorTest::setUp in Commerce Core 8.2

Overrides OrderKernelTestBase::setUp

File

modules/promotion/tests/src/Kernel/CouponValidConstraintValidatorTest.php, line 32

Class

CouponValidConstraintValidatorTest
Tests the coupon valid constraint on coupons fields.

Namespace

Drupal\Tests\commerce_promotion\Kernel

Code

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',
  ]);
}