You are here

protected function EncryptServiceTest::setUp in Encrypt 8.3

Overrides UnitTestCase::setUp

File

tests/src/Unit/EncryptServiceTest.php, line 75

Class

EncryptServiceTest
Unit tests for EncryptService class.

Namespace

Drupal\Tests\encrypt\Unit

Code

protected function setUp() {
  parent::setUp();

  // Set up a mock EncryptionProfile entity.
  $this->encryptionProfile = $this
    ->prophesize(EncryptionProfileInterface::class);

  // Set up a mock EncryptionMethodManager.
  $this->encryptManager = $this
    ->prophesize(EncryptionMethodManager::class);

  // Set up a mock KeyRepository.
  $this->keyRepository = $this
    ->prophesize(KeyRepositoryInterface::class);

  // Set up a mock EncryptionMethod plugin.
  $this->encryptionMethod = $this
    ->prophesize(EncryptionMethodInterface::class);

  // Set up a mock Key entity.
  $this->key = $this
    ->prophesize(Key::class);
}