1
0
Fork 0
mirror of synced 2024-09-19 02:48:02 +12:00
appwrite/tests/e2e/Services/Console/ModeTest.php

35 lines
894 B
PHP
Raw Normal View History

2024-04-11 05:46:31 +12:00
<?php
namespace Tests\E2E\Services\Console;
use Appwrite\Extend\Exception;
use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectConsole;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideClient;
class ModeTest extends Scope
{
use ProjectConsole;
use SideClient;
public function testConsoleWithAdminMode(): void
{
2024-04-16 19:59:02 +12:00
$this->markTestSkipped();
2024-04-11 05:46:31 +12:00
/**
* Test for SUCCESS
*/
2024-04-16 19:59:02 +12:00
/*
2024-04-11 05:46:31 +12:00
$response = $this->client->call(Client::METHOD_GET, '/account', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-mode' => 'admin',
], $this->getHeaders()));
$this->assertEquals(400, $response['headers']['status-code']);
$this->assertEquals(Exception::GENERAL_BAD_REQUEST, $response['body']['type']);
2024-04-16 19:59:02 +12:00
*/
2024-04-11 05:46:31 +12:00
}
}