You are here

public function ChecklistapiTest::setUp in Checklist API 8

Throws

\Drupal\Core\Entity\EntityStorageException

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ChecklistapiTest.php, line 45

Class

ChecklistapiTest
Functionally tests Checklist API.

Namespace

Drupal\Tests\checklistapi\Functional

Code

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

  // Create a privileged user.
  $permissions = [
    'edit any checklistapi checklist',
  ];
  $this->privilegedUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->privilegedUser);

  // Place help block.
  $this
    ->drupalPlaceBlock('help_block', [
    'region' => 'help',
  ]);
}