summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-14 21:05:19 +0100
committerGitHub <noreply@github.com>2018-01-14 21:05:19 +0100
commitfcea6e1564c7189949b0b88f696e16e2979738fa (patch)
treed73df5e9caf250162b88054be751964090e0b929 /apps
parent7d9146db38be09dc413282aa217ebc0003c99d3d (diff)
parent6e1ee1e7a7aa6e52b922665b9466ce2db244ecb6 (diff)
downloadnextcloud-server-fcea6e1564c7189949b0b88f696e16e2979738fa.tar.gz
nextcloud-server-fcea6e1564c7189949b0b88f696e16e2979738fa.zip
Merge pull request #7849 from nextcloud/strict_securerandom
Strict ISecure random
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/tests/TokenHandlerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/tests/TokenHandlerTest.php b/apps/federatedfilesharing/tests/TokenHandlerTest.php
index aca6c3d26c1..d6f3f8fe5da 100644
--- a/apps/federatedfilesharing/tests/TokenHandlerTest.php
+++ b/apps/federatedfilesharing/tests/TokenHandlerTest.php
@@ -55,9 +55,9 @@ class TokenHandlerTest extends \Test\TestCase {
$this->expectedTokenLength,
ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS
)
- ->willReturn(true);
+ ->willReturn('mytoken');
- $this->assertTrue($this->tokenHandler->generateToken());
+ $this->assertSame('mytoken', $this->tokenHandler->generateToken());
}