1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

more test fixes

This commit is contained in:
Damodar Lohani 2021-07-29 17:40:04 +05:45
parent 9afd8247df
commit f1e364589a
3 changed files with 3 additions and 2 deletions

View file

@ -62,6 +62,7 @@ trait ProjectCustom
'cookie' => 'a_session_console=' . $this->getRoot()['session'],
'x-appwrite-project' => 'console',
], [
'keyId' => 'unique()',
'name' => 'Demo Project Key',
'scopes' => [
'users.read',
@ -98,6 +99,7 @@ trait ProjectCustom
'cookie' => 'a_session_console=' . $this->getRoot()['session'],
'x-appwrite-project' => 'console',
], [
'webhookId' => 'unique()',
'name' => 'Webhook Test',
'events' => [
'account.create',

View file

@ -113,8 +113,6 @@ class FunctionsCustomClientTest extends Scope
'async' => 1,
]);
$executionId = $execution['body']['$id'] ?? '';
$this->assertEquals(201, $execution['headers']['status-code']);
$execution = $this->client->call(Client::METHOD_POST, '/functions/'.$function['body']['$id'].'/executions', array_merge([

View file

@ -17,6 +17,7 @@ trait StorageBase
'content-type' => 'multipart/form-data',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'fileId' => 'unique()',
'file' => new CURLFile(realpath(__DIR__ . '/../../../resources/logo.png'), 'image/png', 'logo.png'),
'read' => ['role:all'],
'write' => ['role:all'],