Code Duplication    Length = 7-8 lines in 2 locations

apps/encryption/tests/lib/KeyManagerTest.php 2 locations

@@ 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