public function PrintablePdfTest::setUp in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x src/Tests/PrintablePdfTest.php \Drupal\printable\Tests\PrintablePdfTest::setUp()
Perform any initial set up tasks that run before every test method.
Overrides NodeTestBase::setUp
File
- src/
Tests/ PrintablePdfTest.php, line 37
Class
- PrintablePdfTest
- Tests the printable_pdf module functionality.
Namespace
Drupal\printable\TestsCode
public function setUp() {
parent::setUp();
$web_user = $this
->drupalCreateUser([
'create page content',
'edit own page content',
'view printer friendly versions',
'administer printable',
]);
$this
->drupalLogin($web_user);
}