You are here

protected function VoteDeletionTest::setUp in Voting API 8.3

Overrides BrowserTestBase::setUp

File

tests/src/Functional/VoteDeletionTest.php, line 38

Class

VoteDeletionTest
Tests the deletion of votes.

Namespace

Drupal\Tests\votingapi\Functional

Code

protected function setUp() {
  parent::setUp();
  $user = $this
    ->createUser([
    'access administration pages',
    'delete votes',
  ]);
  $this->node = $this
    ->createNode([
    'type' => 'article',
    'title' => $this
      ->randomMachineName(),
  ]);
  $this
    ->drupalLogin($user);
}