You are here

protected function ProtectionRuleCrudTest::setUp in User protect 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ProtectionRuleCrudTest.php, line 25

Class

ProtectionRuleCrudTest
Tests creating, editing and deleting protection rules through the UI.

Namespace

Drupal\Tests\userprotect\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->account = $this
    ->drupalCreateUser([
    'userprotect.administer',
  ]);
  $this
    ->drupalLogin($this->account);
}