public function PdfParseTest::testParsePdftk in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x tests/src/Functional/PdfParseTest.php \Drupal\Tests\fillpdf\Functional\PdfParseTest::testParsePdftk()
Tests PDF population using a local install of pdftk.
Throws
\Behat\Mink\Exception\ResponseTextException
\Drupal\Component\Plugin\Exception\PluginException
\Drupal\Core\Entity\EntityStorageException
File
- tests/
src/ Functional/ PdfParseTest.php, line 43
Class
- PdfParseTest
- Tests PDF parsing.
Namespace
Drupal\Tests\fillpdf\FunctionalCode
public function testParsePdftk() {
$this
->configureFillPdf([
'backend' => 'pdftk',
]);
if (!FillPdf::checkPdftkPath()) {
throw new \PHPUnit_Framework_SkippedTestError('pdftk not available, so skipping test.');
}
$this
->backendTest($this
->config('fillpdf.settings'));
}