1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Fixed tests

This commit is contained in:
Eldad Fux 2021-05-05 10:32:20 +03:00
parent 4e67339e68
commit f69c95e119
2 changed files with 3 additions and 2 deletions

View file

@ -552,7 +552,7 @@ App::setResource('dbForConsole', function($register) {
$cache = new Cache(new RedisCache($register->get('cache')));
$database = new Database2(new MariaDB($register->get('db')), $cache);
$database->setNamespace('project_console');
$database->setNamespace('project_console_internal');
return $database;
}, ['register']);

View file

@ -228,7 +228,8 @@ trait WebhooksBase
$this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']);
$this->assertEquals(empty($webhook['headers']['X-Appwrite-Webhook-User-Id'] ?? ''), ('server' === $this->getSide()));
$this->assertNotEmpty($webhook['data']['$id']);
$this->assertIsArray($webhook['data']['$permissions']);
$this->assertIsArray($webhook['data']['$read']);
$this->assertIsArray($webhook['data']['$write']);
$this->assertEquals($webhook['data']['name'], 'logo.png');
$this->assertIsInt($webhook['data']['dateCreated'], 'logo.png');
$this->assertNotEmpty($webhook['data']['signature']);