1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

linters fix

This commit is contained in:
Damodar Lohani 2022-06-30 09:40:27 +00:00
parent 477bc95a00
commit 1c1442a4fc

View file

@ -6,17 +6,19 @@ use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideServer;
class UsageTest extends Scope {
class UsageTest extends Scope
{
use ProjectCustom;
use SideServer;
protected array $headers = [];
protected string $projectId;
protected int $usersCount = 0;
protected int $requestsCount = 0;
protected function setUp(): void {
protected function setUp(): void
{
parent::setUp();
$project = $this->getProject(true);
$this->projectId = $project['$id'];
@ -27,8 +29,8 @@ class UsageTest extends Scope {
public function testUsersStats(): void
{
for($i = 0; $i<10; $i++) {
for ($i = 0; $i < 10; $i++) {
$email = uniqid() . 'user@usage.test';
$password = 'password';
$name = uniqid() . 'User';
@ -51,7 +53,7 @@ class UsageTest extends Scope {
'x-appwrite-project' => 'console',
'cookie' => 'a_session_console=' . $this->getRoot()['session'],
];
$res = $this->client->call(Client::METHOD_GET, '/projects/' . $this->projectId . '/usage?range=30d', $headers);
$res = $res['body'];
@ -69,4 +71,4 @@ class UsageTest extends Scope {
$this->projectId = '';
$this->headers = [];
}
}
}