summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-07 13:32:08 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-07 19:33:32 +0100
commit372f3d2a60dee056b2012f320d9bf220a8758c58 (patch)
tree1b795de0e301ce51c42df95aefef7ee67d7d4651 /apps
parente54e616de9320be5fbbeb5dd711b49bb2f5e4a1f (diff)
downloadnextcloud-server-372f3d2a60dee056b2012f320d9bf220a8758c58.tar.gz
nextcloud-server-372f3d2a60dee056b2012f320d9bf220a8758c58.zip
Remove deprecated functions from SecureRandom
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/tests/Crypto/EncryptAllTest.php2
-rw-r--r--apps/federation/tests/Controller/OCSAuthAPIControllerTest.php1
2 files changed, 0 insertions, 3 deletions
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php
index 647b951a0a6..af9b2eae307 100644
--- a/apps/encryption/tests/Crypto/EncryptAllTest.php
+++ b/apps/encryption/tests/Crypto/EncryptAllTest.php
@@ -126,8 +126,6 @@ class EncryptAllTest extends TestCase {
$this->userInterface->expects($this->any())->method('getUsers')->willReturn(['user1', 'user2']);
$this->secureRandom = $this->getMockBuilder(ISecureRandom::class)->disableOriginalConstructor()->getMock();
- $this->secureRandom->expects($this->any())->method('getMediumStrengthGenerator')->willReturn($this->secureRandom);
- $this->secureRandom->expects($this->any())->method('getLowStrengthGenerator')->willReturn($this->secureRandom);
$this->secureRandom->expects($this->any())->method('generate')->willReturn('12345678');
diff --git a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
index 7fb84c8bad2..26c0235fa70 100644
--- a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
+++ b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php
@@ -177,7 +177,6 @@ class OCSAuthAPIControllerTest extends TestCase {
$this->trustedServers->expects($this->once())
->method('addSharedSecret')->willReturn($url, 'secret');
} else {
- $this->secureRandom->expects($this->never())->method('getMediumStrengthGenerator');
$this->secureRandom->expects($this->never())->method('generate');
$this->trustedServers->expects($this->never())->method('addSharedSecret');
}