1
0
Fork 0
mirror of synced 2024-06-27 18:50:47 +12:00

Fix messaging tests

This commit is contained in:
Jake Barnby 2024-01-09 16:44:15 +13:00
parent 5044c0cafa
commit 78b46f975e
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 6 additions and 4 deletions

View file

@ -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" }'
]
]);

View file

@ -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);