/** * @test * @expectedException \TYPO3\Flow\Security\Exception\DecryptionNotAllowedException */ public function decryptingWithAKeypairUUIDMarkedForPasswordUsageThrowsAnException() { $this->keyPairUuid = $this->rsaWalletService->generateNewKeypair(TRUE); $this->rsaWalletService->decrypt('some cipher', $this->keyPairUuid); }