You are here

public function PdfParseTest::testParseLocalService in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 tests/src/Functional/PdfParseTest.php \Drupal\Tests\fillpdf\Functional\PdfParseTest::testParseLocalService()

Tests PDF population using local service.

Throws

\Behat\Mink\Exception\ResponseTextException

\Drupal\Component\Plugin\Exception\PluginException

\Drupal\Core\Entity\EntityStorageException

File

tests/src/Functional/PdfParseTest.php, line 25

Class

PdfParseTest
Tests PDF parsing.

Namespace

Drupal\Tests\fillpdf\Functional

Code

public function testParseLocalService() {
  $this
    ->configureLocalServiceBackend();
  $config = $this
    ->config('fillpdf.settings');
  if (!FillPdf::checkLocalServiceEndpoint($this->container
    ->get('http_client'), $config)) {
    $this
      ->markTestSkipped('FillPDF LocalServer unavailable, so skipping test.');
  }
  $this
    ->backendTest($config);
}