You are here

public function FieldEncryptProcessEntitiesTest::updateStoredFieldDataProvider in Field Encryption 8.2

Data provider for testUpdateStoredField method.

Return value

array An array with data for the test method.

File

tests/src/Unit/FieldEncryptProcessEntitiesTest.php, line 639
Contains \Drupal\Tests\field_encrypt\Unit\FieldEncryptProcessEntitiesTest.

Class

FieldEncryptProcessEntitiesTest
Unit Tests for the FieldEncryptProcessEntities service.

Namespace

Drupal\Tests\field_encrypt\Unit

Code

public function updateStoredFieldDataProvider() {
  return [
    'no_decrypt' => [
      'field_test',
      'node',
      [],
      1,
    ],
    'decrypt' => [
      'field_test',
      'node',
      [
        'field_encrypt' => TRUE,
        'properties' => [
          'value',
        ],
        'encryption_profile' => 'test_encryption_profile',
      ],
      1,
    ],
  ];
}