public function PrintableBlockTest::setUp in Printer and PDF versions for Drupal 8+ 8
Same name and namespace in other branches
- 2.x 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\TestsCode
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',
]);
}