1
0
Fork 0
mirror of synced 2024-06-14 00:34:51 +12:00

create project only once

This commit is contained in:
Damodar Lohani 2022-07-27 08:14:16 +00:00
parent c823ca7ac6
commit e9bbcc9135

View file

@ -18,18 +18,14 @@ class UsageTest extends Scope
protected array $headers = [];
protected string $projectId;
protected function setUp(): void
public function testUsersStats(): void
{
parent::setUp();
$project = $this->getProject(true);
$this->projectId = $project['$id'];
$this->headers['x-appwrite-project'] = $project['$id'];
$this->headers['x-appwrite-key'] = $project['apiKey'];
$this->headers['content-type'] = 'application/json';
}
public function testUsersStats(): void
{
$usersCount = 0;
$requestsCount = 0;
for ($i = 0; $i < 10; $i++) {