You are here

public function LegacyBackendTest::testTestBackend in FillPDF 8.4

Tests the legacy test backend.

File

modules/fillpdf_legacy/tests/Kernel/LegacyBackendTest.php, line 24

Class

LegacyBackendTest
Tests that backend-related functions work.

Namespace

Drupal\Tests\fillpdf_legacy\Kernel

Code

public function testTestBackend() {
  $backend_manager = $this->container
    ->get('plugin.manager.fillpdf.pdf_backend');
  $test_backend = $backend_manager
    ->createInstance('test');
  self::assertInstanceOf(LegacyProviderPdfBackend::class, $test_backend);
}