diff options
Diffstat (limited to 'tests/units/UserTest.php')
-rw-r--r-- | tests/units/UserTest.php | 9 |
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); |