You are here

protected function HookCronTest::setUp in Entity Share Cron 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/HookCronTest.php \Drupal\Tests\entity_share_cron\Kernel\HookCronTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/HookCronTest.php, line 196

Class

HookCronTest
Tests the hook_cron() implementation.

Namespace

Drupal\Tests\entity_share_cron\Kernel

Code

protected function setUp() {
  parent::setUp();

  // Installs and gets module configuration.
  $this
    ->installConfig([
    'serialization',
    'jsonapi',
    'entity_share_client',
    'entity_share_cron',
  ]);
  $this->config = \Drupal::configFactory()
    ->getEditable('entity_share_cron.settings');

  // Gets the queue.
  $this->queue = \Drupal::queue(EntityShareCronServiceInterface::PENDING_QUEUE_NAME);
}