You are here

protected function PluginTestBase::setUpQueuePlugin in Purge 8.3

Load the queue plugin and make $this->queue available.

2 calls to PluginTestBase::setUpQueuePlugin()
FileQueueTest::testBufferReadingAndWriting in tests/src/Kernel/Queue/FileQueueTest.php
Tests if the buffer gets written to disk properly.
PluginTestBase::setUp in tests/src/Kernel/Queue/PluginTestBase.php
Set up the test.

File

tests/src/Kernel/Queue/PluginTestBase.php, line 45

Class

PluginTestBase
Provides a abstract test class to aid thorough tests for queue plugins.

Namespace

Drupal\Tests\purge\Kernel\Queue

Code

protected function setUpQueuePlugin() : void {
  if (is_null($this->queue)) {
    $this->queue = $this->pluginManager
      ->createInstance($this->pluginId);
    $this
      ->assertNull($this->queue
      ->createQueue());
  }
}