You are here

public function ParseBooleanFlagsTest::buildQuery in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x tests/src/Unit/LinkManipulator/ParseBooleanFlagsTest.php \Drupal\Tests\fillpdf\Unit\LinkManipulator\ParseBooleanFlagsTest::buildQuery()

Input helper for testBooleanFlags().

1 call to ParseBooleanFlagsTest::buildQuery()
ParseBooleanFlagsTest::testBooleanFlags in tests/src/Unit/LinkManipulator/ParseBooleanFlagsTest.php
Tests &sample=, &download= and &flatten= query parameters.

File

tests/src/Unit/LinkManipulator/ParseBooleanFlagsTest.php, line 35

Class

ParseBooleanFlagsTest
@coversDefaultClass \Drupal\fillpdf\Service\FillPdfLinkManipulator

Namespace

Drupal\Tests\fillpdf\Unit\LinkManipulator

Code

public function buildQuery($input) {
  return [
    'fid' => 1,
    'entity_type' => 'node',
    'entity_id' => 1,
    'sample' => $input,
    'download' => $input,
    'flatten' => $input,
  ];
}