You are here

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

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

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

Overrides NodeTestBase::setUp

File

src/Tests/PrintableLinkTest.php, line 24

Class

PrintableLinkTest
Tests the printable module functionality.

Namespace

Drupal\printable\Tests

Code

public function setUp() {
  parent::setUp();
  $user = $this
    ->drupalCreateUser([
    'create page content',
    'edit own page content',
    'view printer friendly versions',
    'administer printable',
  ]);
  $this
    ->drupalLogin($user);
}