summaryrefslogtreecommitdiffstats
path: root/apps/federation
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-11 20:29:48 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-11 20:29:48 +0100
commit07fd3889b1e7752131dc0bc746abec7646c89d01 (patch)
tree65ce673433c82224f763aec573fd87f07db8c275 /apps/federation
parent876fb83ddcf7ae6c1b63e7d7a1636893c52284b6 (diff)
downloadnextcloud-server-07fd3889b1e7752131dc0bc746abec7646c89d01.tar.gz
nextcloud-server-07fd3889b1e7752131dc0bc746abec7646c89d01.zip
Fix unit tests
Diffstat (limited to 'apps/federation')
-rw-r--r--apps/federation/tests/api/ocsauthapitest.php2
-rw-r--r--apps/federation/tests/lib/trustedserverstest.php2
2 files changed, 0 insertions, 4 deletions
diff --git a/apps/federation/tests/api/ocsauthapitest.php b/apps/federation/tests/api/ocsauthapitest.php
index e6a95af8585..0a708a0a9f2 100644
--- a/apps/federation/tests/api/ocsauthapitest.php
+++ b/apps/federation/tests/api/ocsauthapitest.php
@@ -155,8 +155,6 @@ class OCSAuthAPITest extends TestCase {
->method('isValidToken')->with($url, $token)->willReturn($isValidToken);
if($expected === Http::STATUS_OK) {
- $this->secureRandom->expects($this->once())->method('getMediumStrengthGenerator')
- ->willReturn($this->secureRandom);
$this->secureRandom->expects($this->once())->method('generate')->with(32)
->willReturn('secret');
$this->trustedServers->expects($this->once())
diff --git a/apps/federation/tests/lib/trustedserverstest.php b/apps/federation/tests/lib/trustedserverstest.php
index d067cd1c185..c1b3f83d69f 100644
--- a/apps/federation/tests/lib/trustedserverstest.php
+++ b/apps/federation/tests/lib/trustedserverstest.php
@@ -113,8 +113,6 @@ class TrustedServersTest extends TestCase {
->willReturn($success);
if ($success) {
- $this->secureRandom->expects($this->once())->method('getMediumStrengthGenerator')
- ->willReturn($this->secureRandom);
$this->secureRandom->expects($this->once())->method('generate')
->willReturn('token');
$this->dbHandler->expects($this->once())->method('addToken')->with('https://url', 'token');