Ejemplo n.º 1
0
 /**
  * Tests the setEncryptionKey method.
  *
  * @covers ::setEncryptionKey
  */
 public function testSetEncryptionKey()
 {
     $encryption_profile = new EncryptionProfile([], 'encryption_profile');
     // Set up expectations for key entity.
     $this->key->expects($this->any())->method('id')->will($this->returnValue('test_key'));
     $encryption_profile->setEncryptionKey($this->key);
     $this->assertEquals("test_key", $encryption_profile->getEncryptionKeyId());
 }