1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Improve variables CRUD tests

This commit is contained in:
Matej Bačo 2022-08-30 09:31:32 +00:00
parent 2534e9ad8f
commit e6ccfb6dd7

View file

@ -227,6 +227,16 @@ class FunctionsConsoleClientTest extends Scope
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertCount(1, $response['body']['variables']);
$response = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'] . '/variables', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'queries' => [ 'equal("key", "NON_EXISTING_VARIABLE")' ]
]);
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertCount(0, $response['body']['variables']);
/**
* Test for FAILURE
*/