From 5afae248aead81a96410d1b06ba0a73e2108ffd9 Mon Sep 17 00:00:00 2001 From: fogelito Date: Mon, 10 Nov 2025 15:00:18 +0200 Subject: [PATCH] Test Update --- composer.json | 1 - tests/e2e/Services/Account/AccountBase.php | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 9694c2dc51..62abce9ca2 100644 --- a/composer.json +++ b/composer.json @@ -60,7 +60,6 @@ "utopia-php/framework": "0.33.*", "utopia-php/fetch": "0.4.*", "utopia-php/image": "0.8.*", - "utopia-php/emails": "0.6.*", "utopia-php/locale": "0.8.*", "utopia-php/logger": "0.6.*", "utopia-php/messaging": "0.20.*", diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index d51632c6c9..9f35932700 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -29,7 +29,7 @@ trait AccountBase ]); $id = $response['body']['$id']; - var_dump($response['body']); + $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']); $this->assertNotEmpty($response['body']['$id']); @@ -41,8 +41,11 @@ trait AccountBase $this->assertNotEmpty($response['body']['accessedAt']); $this->assertArrayHasKey('targets', $response['body']); $this->assertEquals($email, $response['body']['targets'][0]['identifier']); - $this->assertEquals('shmuel', 'fogel'); - + $this->assertArrayNotHasKey('emailCanonical', $response['body']); + $this->assertArrayNotHasKey('emailIsFree', $response['body']); + $this->assertArrayNotHasKey('emailIsDisposable', $response['body']); + $this->assertArrayNotHasKey('emailIsCorporate', $response['body']); + $this->assertArrayNotHasKey('emailIsCanonical', $response['body']); /** * Test for FAILURE