From cba308dd6e0a61df8601882865854158fd00b3bc Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:27:28 +0000 Subject: [PATCH] test: fix webhookcustomclient --- .../Webhooks/WebhooksCustomClientTest.php | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php index 1539f5fcc7..3ba1052467 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomClientTest.php @@ -365,29 +365,7 @@ class WebhooksCustomClientTest extends Scope $this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']); $this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide())); $this->assertNotEmpty($webhook['data']['$id']); - $this->assertNotEmpty($webhook['data']['userId']); - $this->assertEquals(true, (new DatetimeValidator())->isValid($webhook['data']['expire'])); - $this->assertEquals($webhook['data']['ip'], '127.0.0.1'); - $this->assertNotEmpty($webhook['data']['osCode']); - $this->assertIsString($webhook['data']['osCode']); - $this->assertNotEmpty($webhook['data']['osName']); - $this->assertIsString($webhook['data']['osName']); - $this->assertNotEmpty($webhook['data']['osVersion']); - $this->assertIsString($webhook['data']['osVersion']); - $this->assertEquals($webhook['data']['clientType'], 'browser'); - $this->assertEquals($webhook['data']['clientCode'], 'CH'); - $this->assertEquals($webhook['data']['clientName'], 'Chrome'); - $this->assertNotEmpty($webhook['data']['clientVersion']); - $this->assertIsString($webhook['data']['clientVersion']); - $this->assertNotEmpty($webhook['data']['clientEngine']); - $this->assertIsString($webhook['data']['clientEngine']); - $this->assertIsString($webhook['data']['clientEngineVersion']); - $this->assertIsString($webhook['data']['deviceName']); - $this->assertIsString($webhook['data']['deviceBrand']); - $this->assertIsString($webhook['data']['deviceModel']); - $this->assertIsString($webhook['data']['countryCode']); - $this->assertIsString($webhook['data']['countryName']); - $this->assertEquals($webhook['data']['current'], true); + $this->assertEquals($email, $webhook['data']['email']); $accountSession = $this->client->call(Client::METHOD_POST, '/account/sessions/email', array_merge([ 'origin' => 'http://localhost',