Skip to content

Commit

Permalink
Use Http::getEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Feb 20, 2024
1 parent 52316a2 commit e6d1110
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/Analytics/AnalyticsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Utopia\Analytics\Adapter\Orbit;
use Utopia\Analytics\Adapter\Plausible;
use Utopia\Analytics\Event;
use Utopia\Http\Http;

class AnalyticsTest extends TestCase
{
Expand All @@ -29,11 +30,11 @@ class AnalyticsTest extends TestCase

public function setUp(): void
{
$this->ga = new GoogleAnalytics(getenv('GA_TID') ?? '', getenv('GA_CID') ?? '');
$this->pa = new Plausible(getenv('PA_DOMAIN') ?? '', getenv('PA_APIKEY') ?? '', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36', '192.168.0.1');
$this->orbit = new Orbit(getenv('OR_WORKSPACEID') ?? '', getenv('OR_APIKEY') ?? '', 'Utopia Testing Suite');
$this->mp = new Mixpanel(getenv('MP_PROJECT_TOKEN') ?? '');
$this->hs = new HubSpot(getenv('HS_APIKEY') ?? '');
$this->ga = new GoogleAnalytics(Http::getEnv('GA_TID') ?? '', Http::getEnv('GA_CID') ?? '');
$this->pa = new Plausible(Http::getEnv('PA_DOMAIN') ?? '', Http::getEnv('PA_APIKEY') ?? '', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36', '192.168.0.1');
$this->orbit = new Orbit(Http::getEnv('OR_WORKSPACEID') ?? '', Http::getEnv('OR_APIKEY') ?? '', 'Utopia Testing Suite');
$this->mp = new Mixpanel(Http::getEnv('MP_PROJECT_TOKEN') ?? '');
$this->hs = new HubSpot(Http::getEnv('HS_APIKEY') ?? '');
}

/**
Expand Down

0 comments on commit e6d1110

Please sign in to comment.