From 94e580c2597c37f4bd5f805b7a9dcd0df364c37b Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 13 Feb 2024 15:05:15 +1300 Subject: [PATCH] Fix graphql test --- tests/e2e/Services/GraphQL/MessagingTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/Services/GraphQL/MessagingTest.php b/tests/e2e/Services/GraphQL/MessagingTest.php index dba655b558..d8aa08ce71 100644 --- a/tests/e2e/Services/GraphQL/MessagingTest.php +++ b/tests/e2e/Services/GraphQL/MessagingTest.php @@ -45,8 +45,8 @@ class MessagingTest extends Scope 'Telesign' => [ 'providerId' => ID::unique(), 'name' => 'Telesign1', - 'username' => 'my-username', - 'password' => 'my-password', + 'customerId' => 'my-username', + 'apiKey' => 'my-password', 'from' => '+123456789', ], 'Textmagic' => [ @@ -104,7 +104,7 @@ class MessagingTest extends Scope 'x-appwrite-key' => $this->getProject()['apiKey'], ]), $graphQLPayload); - \array_push($providers, $response['body']['data']['messagingCreate' . $key . 'Provider']); + $providers[] = $response['body']['data']['messagingCreate' . $key . 'Provider']; $this->assertEquals(200, $response['headers']['status-code']); $this->assertEquals($providersParams[$key]['name'], $response['body']['data']['messagingCreate' . $key . 'Provider']['name']); }