You are here

protected function PdfPopulationTest::setUp in FillPDF 5.0.x

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

Overrides FillPdfTestBase::setUp

File

tests/src/Functional/PdfPopulationTest.php, line 52

Class

PdfPopulationTest
Tests Core entity population and image stamping.

Namespace

Drupal\Tests\fillpdf\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Grant additional permissions to the logged-in admin user.
  $existing_user_roles = $this->adminUser
    ->getRoles(TRUE);
  $role_to_modify = Role::load(end($existing_user_roles));
  $this
    ->grantPermissions($role_to_modify, [
    'administer image styles',
    'use text format restricted_html',
  ]);
  $this->testVocabulary = $this
    ->createVocabulary();
  $this
    ->configureFillPdf();
}