You are here

public function PdfParseTest::testParseLocalService in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x 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)) {
    throw new \PHPUnit_Framework_SkippedTestError('FillPDF LocalServer unavailable, so skipping test.');
  }
  $this
    ->backendTest($config);
}