You are here

public function PrintablePdfFormTest::setUp in Printer and PDF versions for Drupal 8+ 2.x

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

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

Overrides BrowserTestBase::setUp

File

src/Tests/PrintablePdfFormTest.php, line 31

Class

PrintablePdfFormTest
Tests the printable module functionality.

Namespace

Drupal\printable\Tests

Code

public function setUp() {
  parent::setUp();
  $this->user = $this
    ->drupalCreateUser([
    'administer printable',
  ]);
  $this
    ->drupalLogin($this->user);
}