1
0
Fork 0
mirror of synced 2024-07-09 08:27:01 +12:00
appwrite/tests/e2e/Services/Console/ConsoleCustomServerTest.php
2023-03-31 17:14:59 +02:00

28 lines
687 B
PHP

<?php
namespace Tests\E2E\Services\Console;
use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideServer;
class ConsoleCustomServerTest extends Scope
{
use ProjectCustom;
use SideServer;
public function testGetVariables(): void
{
/**
* Test for FAILURE
*/
$response = $this->client->call(Client::METHOD_GET, '/console/variables', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);
$this->assertEquals(401, $response['headers']['status-code']);
}
}