summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold Daniels <arnold@jasny.net>2016-12-25 07:23:28 +0100
committerArnold Daniels <arnold@jasny.net>2016-12-25 07:23:28 +0100
commit723cc3bda66330a9f7daa7947f893e6fb87d146c (patch)
treeea9e0f62d6d2769953d697c450b485d1d3379e2a
parenta14de98b8c0f5c72f7e15889bf00d5d2dbb43d11 (diff)
downloadauth-723cc3bda66330a9f7daa7947f893e6fb87d146c.zip
auth-723cc3bda66330a9f7daa7947f893e6fb87d146c.tar.gz
auth-723cc3bda66330a9f7daa7947f893e6fb87d146c.tar.bz2
fixup confirmation test
-rw-r--r--tests/Auth/ConfirmationTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Auth/ConfirmationTest.php b/tests/Auth/ConfirmationTest.php
index 018db69..eb5e742 100644
--- a/tests/Auth/ConfirmationTest.php
+++ b/tests/Auth/ConfirmationTest.php
@@ -89,7 +89,7 @@ class ConfirmationTest extends TestCase
$salt = hash('sha256', 'very secret' . 'foo bar'); // hashids salt has been compromized
$hashids = new Hashids($salt);
- $token = $hashids->encodeHex(str_repeat('0', 12) . '123'); // token with id and invalid checksum
+ $token = $hashids->encodeHex(str_repeat('0', 16) . '123'); // token with id and invalid checksum
$this->auth->method('getConfirmationSecret')->willReturn('very secret');
$this->auth->expects($this->once())->method('fetchUserById')->with(123)->willReturn($user);