You are here

protected function BaseFieldSettingsFormTest::setUp in Field Encryption 3.0.x

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/BaseFieldSettingsFormTest.php, line 61

Class

BaseFieldSettingsFormTest
Tests for the machine name field.

Namespace

Drupal\Tests\field_encrypt\FunctionalJavascript

Code

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

  // Create content type to test.
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
}