summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-25 15:44:38 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-25 15:44:38 -0400
commit45b5e8b879c1135398790cf988434188aa062cd4 (patch)
tree61b4db2e7bda95141a17b9f86f414a46aed24fde /tests/units
parent471736bf8c9304606f183cd6b688b1fae64eea70 (diff)
Add pagination for users page
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/UserTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/units/UserTest.php b/tests/units/UserTest.php
index b66a6c27..d4f9dd92 100644
--- a/tests/units/UserTest.php
+++ b/tests/units/UserTest.php
@@ -9,6 +9,15 @@ use Model\Project;
class UserTest extends Base
{
+ public function testPassword()
+ {
+ $password = 'test123';
+ $hash = password_hash($password, PASSWORD_BCRYPT);
+
+ $this->assertNotEmpty($hash);
+ $this->assertTrue(password_verify($password, $hash));
+ }
+
public function testPrepare()
{
$u = new User($this->registry);