You are here

public function ServiceTest::setUp in Purge 8.3

Same name in this branch
  1. 8.3 tests/src/Kernel/Processor/ServiceTest.php \Drupal\Tests\purge\Kernel\Processor\ServiceTest::setUp()
  2. 8.3 tests/src/Kernel/Queue/ServiceTest.php \Drupal\Tests\purge\Kernel\Queue\ServiceTest::setUp()
  3. 8.3 tests/src/Kernel/Queuer/ServiceTest.php \Drupal\Tests\purge\Kernel\Queuer\ServiceTest::setUp()
  4. 8.3 tests/src/Kernel/DiagnosticCheck/ServiceTest.php \Drupal\Tests\purge\Kernel\DiagnosticCheck\ServiceTest::setUp()

Set up the test.

Overrides ServiceTestTrait::setUp

File

tests/src/Kernel/Queue/ServiceTest.php, line 41

Class

ServiceTest
Tests \Drupal\purge\Plugin\Purge\Queue\QueueService.

Namespace

Drupal\Tests\purge\Kernel\Queue

Code

public function setUp($switch_to_memory_queue = TRUE) : void {
  parent::setUp($switch_to_memory_queue);
  $this
    ->initializeQueuersService();
  $this->queuer = $this->purgeQueuers
    ->get('a');
  $this->service
    ->emptyQueue();
}