protected function CouponAccessTest::setUp in Commerce Core 8.2
Overrides OrderKernelTestBase::setUp
File
- modules/
promotion/ tests/ src/ Kernel/ CouponAccessTest.php, line 29
Class
- CouponAccessTest
- Tests the coupon access control.
Namespace
Drupal\Tests\commerce_promotion\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('commerce_promotion');
$this
->installEntitySchema('commerce_promotion_coupon');
$this
->installSchema('commerce_promotion', [
'commerce_promotion_usage',
]);
// Create uid: 1 here so that it's skipped in test cases.
$admin_user = $this
->createUser();
}