protected function PdfPopulationTest::setUp in FillPDF 8.4
Same name and namespace in other branches
- 5.0.x tests/src/Functional/PdfPopulationTest.php \Drupal\Tests\fillpdf\Functional\PdfPopulationTest::setUp()
Overrides FillPdfTestBase::setUp
File
- tests/
src/ Functional/ PdfPopulationTest.php, line 51
Class
- PdfPopulationTest
- Tests Core entity population and image stamping.
Namespace
Drupal\Tests\fillpdf\FunctionalCode
protected function setUp() {
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();
}