Skip to content

Commit

Permalink
Merge pull request #1 from wilsonge/patch-19
Browse files Browse the repository at this point in the history
Add unit test
  • Loading branch information
nerddtvg committed Dec 29, 2014
2 parents 52cb8ca + dab72a2 commit 7b0db7f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unit/suites/libraries/joomla/user/JUserHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,21 @@ public function testVerifyPassword()
'Properly verifies a password hashed with Joomla legacy MD5'
);
}

/**
* Testing verifyPassword() with a Joomla 1.0 style password with no salt.
*
* @covers JUserHelper::verifyPassword
* @return void
*
* @since 3.2
* @see https://github.com/joomla/joomla-cms/pull/5551
*/
public function testVerifyPasswordWithNoSalt()
{
$this->assertTrue(
JUserHelper::verifyPassword('test', '098f6bcd4621d373cade4e832627b4f6:'),
'Joomla 1.0 passwords without a legacy hash are not verified correctly'
);
}
}

0 comments on commit 7b0db7f

Please sign in to comment.