1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

tests: fix teams tests

This commit is contained in:
Torsten Dittmann 2023-03-23 13:06:48 +01:00
parent c1ba898cec
commit 7020c85f78
2 changed files with 2 additions and 2 deletions

View file

@ -1462,7 +1462,7 @@ class RealtimeCustomClientTest extends Scope
/**
* Test Team Update Prefs
*/
$team = $this->client->call(Client::METHOD_PATCH, '/teams/' . $teamId . '/prefs', array_merge([
$team = $this->client->call(Client::METHOD_PUT, '/teams/' . $teamId . '/prefs', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
], $this->getHeaders()), [

View file

@ -784,7 +784,7 @@ trait WebhooksBase
{
$id = $data['teamId'] ?? '';
$team = $this->client->call(Client::METHOD_PATCH, '/teams/' . $id . '/prefs', array_merge([
$team = $this->client->call(Client::METHOD_PUT, '/teams/' . $id . '/prefs', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [