Fixed test
This commit is contained in:
parent
be36b31c4e
commit
bd77354926
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ App::post('/v1/account')
|
|||
'phone' => $phone,
|
||||
'phoneVerification' => false,
|
||||
'status' => true,
|
||||
'password' => Auth::passwordHash($password, Auth::DEFAULT_ALGO, Auth::DEFAULT_ALGO_OPTIONS),
|
||||
'password' => (!empty($password)) ? Auth::passwordHash($password, Auth::DEFAULT_ALGO, Auth::DEFAULT_ALGO_OPTIONS) : '',
|
||||
'hash' => Auth::DEFAULT_ALGO,
|
||||
'hashOptions' => Auth::DEFAULT_ALGO_OPTIONS,
|
||||
'passwordUpdate' => \time(),
|
||||
|
|
|
@ -191,7 +191,7 @@ class AuthTest extends TestCase
|
|||
|
||||
public function testCodeGenerator(): void
|
||||
{
|
||||
$this->assertCount(6, \strlen(Auth::codeGenerator()));
|
||||
$this->assertEquals(6, \strlen(Auth::codeGenerator()));
|
||||
$this->assertEquals(\mb_strlen(Auth::codeGenerator()), 256);
|
||||
$this->assertEquals(\mb_strlen(Auth::codeGenerator(5)), 10);
|
||||
$this->assertTrue(is_numeric(Auth::codeGenerator(5)));
|
||||
|
|
Loading…
Reference in a new issue