You are here

protected function FieldEncryptCacheTest::setUp in Field Encryption 8.2

@TODO: Simplify setUp() by extending EncryptTestBase when https://www.drupal.org/node/2692387 lands.

Overrides FieldEncryptTestBase::setUp

File

tests/src/Functional/FieldEncryptCacheTest.php, line 32

Class

FieldEncryptCacheTest
Tests field encryption caching.

Namespace

Drupal\Tests\field_encrypt\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');

  // Set up fields for encryption.
  $this
    ->setFieldStorageSettings(TRUE);

  // Create a test entity.
  $this
    ->createTestNode();
}