mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
test: fix account tests
This commit is contained in:
@@ -2347,9 +2347,9 @@ class AccountCustomClientTest extends Scope
|
||||
|
||||
$lastEmail = $this->getLastEmail();
|
||||
$this->assertEquals($email, $lastEmail['to'][0]['address']);
|
||||
$this->assertEquals('Login', $lastEmail['subject']);
|
||||
$$this->assertEquals($this->getProject()['name'] . ' Login', $lastEmail['subject']);
|
||||
|
||||
$token = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 256);
|
||||
$token = substr($lastEmail['text'], strpos($lastEmail['text'], '&secret=', 0) + 8, 64);
|
||||
|
||||
$expireTime = strpos($lastEmail['text'], 'expire=' . urlencode($response['body']['expire']), 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user