Beispiel #1
0
 public function testCheckRecoveryKeyPassword()
 {
     $this->keyStorageMock->expects($this->any())->method('getSystemUserKey')->with($this->equalTo($this->systemKeyId . '.privateKey'))->willReturn('recoveryKey');
     $this->cryptMock->expects($this->any())->method('decryptPrivateKey')->with($this->equalTo('recoveryKey'), $this->equalTo('pass'))->willReturn('decryptedRecoveryKey');
     $this->assertTrue($this->instance->checkRecoveryPassword('pass'));
 }