You are here

public function EntityPrintPluginManagerTest::isPrintEngineEnabledDataProvider in Entity Print 8.2

Data provider for isPrintEngineEnabled test.

File

tests/src/Kernel/EntityPrintPluginManagerTest.php, line 63

Class

EntityPrintPluginManagerTest
@coversDefaultClass \Drupal\entity_print\Plugin\EntityPrintPluginManager @group entity_print

Namespace

Drupal\Tests\entity_print\Kernel

Code

public function isPrintEngineEnabledDataProvider() {
  return [
    'Non-existent plugin ID' => [
      'abc123',
      FALSE,
    ],
    'Empty plugin ID' => [
      '',
      FALSE,
    ],
    'Disabled plugin ID' => [
      'dompdf',
      FALSE,
    ],
    'Enabled plugin ID' => [
      'testprintengine',
      TRUE,
    ],
  ];
}