|
@@ 336-343 (lines=8) @@
|
| 333 |
|
); |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
public function testGetEncryptedFileKey() { |
| 337 |
|
$this->keyStorageMock->expects($this->once()) |
| 338 |
|
->method('getFileKey') |
| 339 |
|
->with('/', 'fileKey') |
| 340 |
|
->willReturn(true); |
| 341 |
|
|
| 342 |
|
$this->assertTrue($this->instance->getEncryptedFileKey('/')); |
| 343 |
|
} |
| 344 |
|
|
| 345 |
|
/** |
| 346 |
|
* @dataProvider dataTestGetFileKey |
|
@@ 429-435 (lines=7) @@
|
| 426 |
|
[$this->userId])); |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
public function testDeleteAllFileKeys() { |
| 430 |
|
$this->keyStorageMock->expects($this->once()) |
| 431 |
|
->method('deleteAllFileKeys') |
| 432 |
|
->willReturn(true); |
| 433 |
|
|
| 434 |
|
$this->assertTrue($this->instance->deleteAllFileKeys('/')); |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
/** |
| 438 |
|
* test add public share key and or recovery key to the list of public keys |