You are here

public function PdfPopulationTest::testMergePdftk in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x tests/src/Functional/PdfPopulationTest.php \Drupal\Tests\fillpdf\Functional\PdfPopulationTest::testMergePdftk()

Tests PDF population using a local install of pdftk.

Throws

\PHPUnit_Framework_SkippedTestError

\Behat\Mink\Exception\ResponseTextException Thrown when test had to be skipped as local pdftk install is not available.

File

tests/src/Functional/PdfPopulationTest.php, line 358

Class

PdfPopulationTest
Tests Core entity population and image stamping.

Namespace

Drupal\Tests\fillpdf\Functional

Code

public function testMergePdftk() {
  $this
    ->configureFillPdf([
    'backend' => 'pdftk',
  ]);
  if (!FillPdf::checkPdftkPath()) {
    throw new \PHPUnit_Framework_SkippedTestError('pdftk not available, so skipping test.');
  }
  $this
    ->backendTest();
}