diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-14 11:33:53 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-14 21:04:52 +0100 |
commit | 6e1ee1e7a7aa6e52b922665b9466ce2db244ecb6 (patch) | |
tree | db90c0eea1a7e39ac134aef019278181631b385d /apps/federatedfilesharing/tests | |
parent | de5d7aa3317c8547e1ad338613896001fe1aabaf (diff) | |
download | nextcloud-server-6e1ee1e7a7aa6e52b922665b9466ce2db244ecb6.tar.gz nextcloud-server-6e1ee1e7a7aa6e52b922665b9466ce2db244ecb6.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/tests')
-rw-r--r-- | apps/federatedfilesharing/tests/TokenHandlerTest.php | 4 |
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()); } |