1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fix failing tests

This commit is contained in:
Matej Bačo 2024-01-22 14:41:23 +00:00
parent cba974805d
commit d637efb27c

View file

@ -153,7 +153,7 @@ trait AccountBase
$lastEmail = $this->getLastEmail();
$this->assertEquals('otpuser@appwrite.io', $lastEmail['to'][0]['address']);
$this->assertEquals($this->getProject()['name'] . ' Login', $lastEmail['subject']);
$this->assertEquals('OTP for ' . $this->getProject()['name'] . ' Login', $lastEmail['subject']);
// FInd 6 concurrent digits in email text - OTP
preg_match_all("/\b\d{6}\b/", $lastEmail['text'], $matches);