mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed test
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user