Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-14 13:33:53 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-14 23:04:52 +0300
commit6e1ee1e7a7aa6e52b922665b9466ce2db244ecb6 (patch)
treedb90c0eea1a7e39ac134aef019278181631b385d /apps/federatedfilesharing/tests/TokenHandlerTest.php
parentde5d7aa3317c8547e1ad338613896001fe1aabaf (diff)
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/tests/TokenHandlerTest.php')
-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());
}