You are here

public function ServiceTest::testGetPlugins in Purge 8.3

Tests \Drupal\purge\Plugin\Purge\Queue\QueueService::getPlugins.

File

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

Class

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

Namespace

Drupal\Tests\purge\Kernel\Queue

Code

public function testGetPlugins() : void {
  $this
    ->assertTrue(is_array($this->service
    ->getPlugins()));
  $this
    ->assertTrue(isset($this->service
    ->getPlugins()['file']));
  $this
    ->assertTrue(isset($this->service
    ->getPlugins()['memory']));
  $this
    ->assertTrue(isset($this->service
    ->getPlugins()['database']));
  $this
    ->assertFalse(isset($this->service
    ->getPlugins()['null']));
}