You are here

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

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

Overrides FieldEncryptTestBase::setUp

File

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

Class

CacheTest
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();
}