public function PdfPopulationTest::testMergePdftk in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 tests/src/Functional/PdfPopulationTest.php \Drupal\Tests\fillpdf\Functional\PdfPopulationTest::testMergePdftk()
Tests PDF population using a local install of pdftk.
Throws
\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 324
Class
- PdfPopulationTest
- Tests Core entity population and image stamping.
Namespace
Drupal\Tests\fillpdf\FunctionalCode
public function testMergePdftk() {
$this
->configureFillPdf([
'backend' => 'pdftk',
]);
if (!FillPdf::checkPdftkPath()) {
$this
->markTestSkipped('pdftk not available, so skipping test.');
}
$this
->backendTest();
}