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