public function EntityPrintTest::setUp in Entity Print 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ EntityPrintTest.php, line 43
Class
- EntityPrintTest
- Test file.
Namespace
Drupal\Tests\entity_print\FunctionalCode
public function setUp() : void {
parent::setUp();
$this
->createContentType([
'type' => 'page',
]);
$this->node = $this
->createNode();
// Set the default engine.
$config = $this->container
->get('config.factory')
->getEditable('entity_print.settings');
$config
->set('print_engines.pdf_engine', 'print_exception_engine')
->save();
user_role_grant_permissions(Role::ANONYMOUS_ID, [
'access content',
'bypass entity print access',
'entity print views access',
'administer nodes',
]);
}