mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix tests to account for argon2id support
This commit is contained in:
parent
0b8133f8e7
commit
5eab0474e5
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class Password
|
|||
$algos = self::getSupportedAlgorithms();
|
||||
if (isset($algos['argon2id']))
|
||||
{
|
||||
array_unshift($algos);
|
||||
unset($algos['argon2id']);
|
||||
}
|
||||
return key($algos);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class PasswordTest extends \Codeception\TestCase\Test
|
|||
public function testGetDefaultAlgorithm()
|
||||
{
|
||||
$algo = Rhymix\Framework\Password::getDefaultAlgorithm();
|
||||
$this->assertTrue($algo === 'bcrypt' || $algo === 'pbkdf2' || $algo === 'md5');
|
||||
$this->assertTrue($algo === 'argon2id' || $algo === 'bcrypt' || $algo === 'pbkdf2' || $algo === 'md5');
|
||||
}
|
||||
|
||||
public function testGetWorkFactor()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue