From 8eb09a98fea844d046974e046506df28c0e269bf Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Sun, 11 Jan 2026 02:49:28 +1300 Subject: [PATCH] Fix otp user --- .../Account/AccountCustomClientTest.php | 8 ++--- tests/unit/Migration/MigrationTest.php | 34 ------------------- 2 files changed, 4 insertions(+), 38 deletions(-) delete mode 100644 tests/unit/Migration/MigrationTest.php diff --git a/tests/e2e/Services/Account/AccountCustomClientTest.php b/tests/e2e/Services/Account/AccountCustomClientTest.php index c80861f70f..773cf2edb9 100644 --- a/tests/e2e/Services/Account/AccountCustomClientTest.php +++ b/tests/e2e/Services/Account/AccountCustomClientTest.php @@ -1443,7 +1443,7 @@ class AccountCustomClientTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ]), [ 'userId' => ID::unique(), - 'email' => 'otpuser2@appwrite.io' + 'email' => 'otpuser3@appwrite.io' ]); $this->assertEquals($response['headers']['status-code'], 201); @@ -1457,9 +1457,9 @@ class AccountCustomClientTest extends Scope $userId = $response['body']['userId']; - $lastEmail = $this->getLastEmailByAddress('otpuser2@appwrite.io'); + $lastEmail = $this->getLastEmailByAddress('otpuser3@appwrite.io'); - $this->assertNotEmpty($lastEmail, 'Email not found for address: otpuser2@appwrite.io'); + $this->assertNotEmpty($lastEmail, 'Email not found for address: otpuser3@appwrite.io'); $this->assertEquals('OTP for ' . $this->getProject()['name'] . ' Login', $lastEmail['subject']); // Find 6 concurrent digits in email text - OTP @@ -1484,7 +1484,7 @@ class AccountCustomClientTest extends Scope $this->assertEmpty($response['body']['secret']); $lastEmailId = $lastEmail['id']; - $lastEmail = $this->getLastEmailByAddress('otpuser2@appwrite.io'); + $lastEmail = $this->getLastEmailByAddress('otpuser3@appwrite.io'); $this->assertEquals($lastEmailId, $lastEmail['id']); } diff --git a/tests/unit/Migration/MigrationTest.php b/tests/unit/Migration/MigrationTest.php deleted file mode 100644 index 3e16b9cd1c..0000000000 --- a/tests/unit/Migration/MigrationTest.php +++ /dev/null @@ -1,34 +0,0 @@ -method->invokeArgs($this->migration, [ - $this->method->invokeArgs($this->migration, [$document]) - ]); - } - -}