Fix messaging tests
This commit is contained in:
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'],
|
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||||
], [
|
], [
|
||||||
'queries' => [
|
'queries' => [
|
||||||
'equal("total", [0])'
|
Query::equal('total', [0])->toString(),
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ trait MessagingBase
|
||||||
'x-appwrite-key' => $this->getProject()['apiKey'],
|
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||||
], [
|
], [
|
||||||
'queries' => [
|
'queries' => [
|
||||||
'greaterThan("total", 0)'
|
Query::greaterThan('total', 0)->toString(),
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -555,7 +555,7 @@ trait MessagingBase
|
||||||
'x-appwrite-key' => $this->getProject()['apiKey'],
|
'x-appwrite-key' => $this->getProject()['apiKey'],
|
||||||
], [
|
], [
|
||||||
'queries' => [
|
'queries' => [
|
||||||
'{"method":"cursorAsc","attribute":"$id","values":[]}'
|
'{ "method": "cursorAsc", "attribute": "$id" }'
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,9 @@ class MessagingConsoleClientTest extends Scope
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
], $this->getHeaders()), [
|
], $this->getHeaders()), [
|
||||||
'queries' => ['{"method":"cursorAsc","attribute":"$id","values":[]}']
|
'queries' => [
|
||||||
|
'{ "method": "cursorAsc", "attribute":"$id" }'
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($response['headers']['status-code'], 400);
|
$this->assertEquals($response['headers']['status-code'], 400);
|
||||||
|
|
Loading…
Reference in a new issue