Ejemplo n.º 1
0
 public function testPrepareDecryptAll()
 {
     $input = $this->getMock('Symfony\\Component\\Console\\Input\\InputInterface');
     $output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface');
     $this->decryptAllMock->expects($this->once())->method('prepare')->with($input, $output, 'user');
     $this->instance->prepareDecryptAll($input, $output, 'user');
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \OC\Encryption\Exceptions\DecryptionFailedException
  * @expectedExceptionMessage Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
  */
 public function testDecrypt()
 {
     $this->instance->decrypt('abc');
 }