You are here

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

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

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

Overrides NodeTestBase::setUp

File

src/Tests/PrintableBlockTest.php, line 32

Class

PrintableBlockTest
Tests the blocks present in printable module.

Namespace

Drupal\printable\Tests

Code

public function setUp() {
  parent::setUp();

  // Create users and test node.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer content types',
    'administer nodes',
    'administer blocks',
    'access content overview',
  ]);
  $this->webUser = $this
    ->drupalCreateUser([
    'access content',
    'create article content',
  ]);
}