You are here

public function PrintablePageTest::setUp in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x src/Tests/PrintablePageTest.php \Drupal\printable\Tests\PrintablePageTest::setUp()

Perform any initial set up tasks that run before every test method.

Overrides NodeTestBase::setUp

File

src/Tests/PrintablePageTest.php, line 29

Class

PrintablePageTest
Tests the printable module functionality.

Namespace

Drupal\printable\Tests

Code

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);
}