Browse Source

Fix test

pull/8212/head
Aleksander Machniak 4 years ago
parent
commit
d11387c10a
  1. 2
      plugins/password/tests/Password.php

2
plugins/password/tests/Password.php

@ -106,7 +106,7 @@ class Password_Plugin extends PHPUnit\Framework\TestCase
$this->assertMatchesRegularExpression('/^\{CRYPT\}\$5\$[a-zA-Z0-9]{16}\$[a-zA-Z0-9.\/]{43}$/', $pass);
$pass = password::hash_password('test', 'hash-bcrypt');
$this->assertMatchesRegularExpression('/^\$2y\$10\$[a-zA-Z0-9+\/]{53}$/', $pass);
$this->assertMatchesRegularExpression('/^\$2y\$10\$[a-zA-Z0-9.\/]{53}$/', $pass);
// TODO: Test all algos
}

Loading…
Cancel
Save