diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 20:29:48 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-01-11 20:29:48 +0100 |
commit | 07fd3889b1e7752131dc0bc746abec7646c89d01 (patch) | |
tree | 65ce673433c82224f763aec573fd87f07db8c275 /apps/federation | |
parent | 876fb83ddcf7ae6c1b63e7d7a1636893c52284b6 (diff) | |
download | nextcloud-server-07fd3889b1e7752131dc0bc746abec7646c89d01.tar.gz nextcloud-server-07fd3889b1e7752131dc0bc746abec7646c89d01.zip |
Fix unit tests
Diffstat (limited to 'apps/federation')
-rw-r--r-- | apps/federation/tests/api/ocsauthapitest.php | 2 | ||||
-rw-r--r-- | apps/federation/tests/lib/trustedserverstest.php | 2 |
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'); |