mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fix tests
This commit is contained in:
parent
d32da05f92
commit
f082cfacfa
1 changed files with 2 additions and 2 deletions
|
|
@ -782,7 +782,7 @@ class AccountCustomClientTest extends Scope
|
|||
|
||||
$tokens = $this->extractQueryParamsFromEmailLink($lastEmail['html']);
|
||||
$verification = $tokens['secret'];
|
||||
$expectedExpire = DateTime::format(new \DateTime($response['body']['expire']));
|
||||
$expectedExpire = DateTime::formatTz(new \DateTime($response['body']['expire']));
|
||||
$this->assertEquals($expectedExpire, $tokens['expire']);
|
||||
|
||||
// Secret check
|
||||
|
|
@ -1099,7 +1099,7 @@ class AccountCustomClientTest extends Scope
|
|||
$this->assertArrayHasKey('expire', $tokens);
|
||||
$this->assertNotEmpty($tokens['expire']);
|
||||
$this->assertEquals(
|
||||
DateTime::format(new \DateTime($response['body']['expire'])),
|
||||
DateTime::formatTz(new \DateTime($response['body']['expire'])),
|
||||
$tokens['expire']
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue