You are here

protected function EncryptTestBase::setUp in Encrypt 8.3

Overrides BrowserTestBase::setUp

File

tests/src/Functional/EncryptTestBase.php, line 50

Class

EncryptTestBase
Defines a base class for tests.

Namespace

Drupal\Tests\encrypt\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer encrypt',
    'administer keys',
  ]);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->createTestKeys();
  $this
    ->createTestEncryptionProfiles();
}