Fixed tests
This commit is contained in:
parent
4e67339e68
commit
f69c95e119
|
@ -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']);
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue