Fix messaging tests

This commit is contained in:
Jake Barnby
2024-01-09 16:44:15 +13:00
parent 5044c0cafa
commit 78b46f975e
2 changed files with 6 additions and 4 deletions
@@ -290,7 +290,7 @@ trait MessagingBase
'x-appwrite-key' => $this->getProject()['apiKey'],
], [
'queries' => [
'equal("total", [0])'
Query::equal('total', [0])->toString(),
],
]);
@@ -303,7 +303,7 @@ trait MessagingBase
'x-appwrite-key' => $this->getProject()['apiKey'],
], [
'queries' => [
'greaterThan("total", 0)'
Query::greaterThan('total', 0)->toString(),
],
]);
@@ -555,7 +555,7 @@ trait MessagingBase
'x-appwrite-key' => $this->getProject()['apiKey'],
], [
'queries' => [
'{"method":"cursorAsc","attribute":"$id","values":[]}'
'{ "method": "cursorAsc", "attribute": "$id" }'
]
]);
@@ -157,7 +157,9 @@ class MessagingConsoleClientTest extends Scope
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'queries' => ['{"method":"cursorAsc","attribute":"$id","values":[]}']
'queries' => [
'{ "method": "cursorAsc", "attribute":"$id" }'
]
]);
$this->assertEquals($response['headers']['status-code'], 400);