You are here

public function ServiceTest::testGetPluginsEnabled in Purge 8.3

Tests TagsHeadersService::getPluginsEnabled.

File

tests/src/Kernel/TagsHeader/ServiceTest.php, line 48

Class

ServiceTest
Tests \Drupal\purge\Plugin\Purge\TagsHeader\TagsHeadersService.

Namespace

Drupal\Tests\purge\Kernel\TagsHeader

Code

public function testGetPluginsEnabled() : void {
  $plugin_ids = $this->service
    ->getPluginsEnabled();
  foreach ($this->plugins as $plugin_id) {
    $this
      ->assertTrue(in_array($plugin_id, $plugin_ids));
  }
}