Skip to content
Snippets Groups Projects
Unverified Commit 6e1ee1e7 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by Morris Jobke
Browse files

Fix tests

parent de5d7aa3
No related branches found
No related tags found
No related merge requests found
...@@ -55,9 +55,9 @@ class TokenHandlerTest extends \Test\TestCase { ...@@ -55,9 +55,9 @@ class TokenHandlerTest extends \Test\TestCase {
$this->expectedTokenLength, $this->expectedTokenLength,
ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS ISecureRandom::CHAR_LOWER . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_DIGITS
) )
->willReturn(true); ->willReturn('mytoken');
$this->assertTrue($this->tokenHandler->generateToken()); $this->assertSame('mytoken', $this->tokenHandler->generateToken());
} }
......
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2016, ownCloud, Inc. * @copyright Copyright (c) 2016, ownCloud, Inc.
* *
...@@ -21,8 +22,6 @@ ...@@ -21,8 +22,6 @@
* *
*/ */
declare(strict_types=1);
namespace OC\Security; namespace OC\Security;
use OCP\Security\ISecureRandom; use OCP\Security\ISecureRandom;
......
<?php <?php
declare(strict_types=1);
/** /**
* @copyright Copyright (c) 2016, ownCloud, Inc. * @copyright Copyright (c) 2016, ownCloud, Inc.
* *
...@@ -23,8 +24,6 @@ ...@@ -23,8 +24,6 @@
* *
*/ */
declare(strict_types=1);
namespace OCP\Security; namespace OCP\Security;
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment