You are here

protected function LicenseCronExpiryTest::setUp in Commerce License 8.2

Overrides OrderKernelTestBase::setUp

File

tests/src/Kernel/LicenseCronExpiryTest.php, line 56

Class

LicenseCronExpiryTest
Tests that cron expires a license.

Namespace

Drupal\Tests\commerce_license\Kernel\System

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('advancedqueue', 'advancedqueue');
  $this
    ->installEntitySchema('commerce_license');

  // This is just duplicates of the queues in the real module, as we don't
  // want to have to install the admin view in this test.
  $this
    ->installConfig('commerce_license_set_expiry_test');
  $this->cron = \Drupal::service('cron');
  $this->entityTypeManager = \Drupal::service('entity_type.manager');
}