Skip to content

Commit

Permalink
Add one test with existing hash from old method
Browse files Browse the repository at this point in the history
Good idea to include one existing hash rather than always generating a new hash for the test.
  • Loading branch information
photodude authored Dec 4, 2016
1 parent 9ed5d52 commit 3f3ccb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/suites/libraries/joomla/user/JUserHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ public function testVerifyPassword()
JUserHelper::verifyPassword('mySuperSecretPassword', $hashed),
'Properly verifies a password which was hashed before phpass was implemented'
);

$this->assertTrue(
JUserHelper::verifyPassword('mySuperSecretPassword', 'fb7b0a16d7e0e6706c0f962832e1fdd8:vQnUrofbvGRcBR6l502Bt8nioKj8MObh'),
'Properly verifies an existing password hash which was hashed before phpass was implimented'
);
}

/**
Expand Down

0 comments on commit 3f3ccb0

Please sign in to comment.