Skip to content

Commit 66e7e19

Browse files
committed
Update tests for service account support and remove deprecated UA tests
1 parent c95a3e9 commit 66e7e19

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Keboola/GoogleAnalyticsExtractor/Extractor/ExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function setUp(): void
3737
$this->config = $this->getConfig();
3838
$this->logger = new TestLogger();
3939
$client = new Client(
40-
new RestApi(
40+
RestApi::createWithOAuth(
4141
(string) getenv('CLIENT_ID'),
4242
(string) getenv('CLIENT_SECRET'),
4343
(string) getenv('ACCESS_TOKEN'),

tests/Keboola/GoogleAnalyticsExtractor/GoogleAnalytics/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setUp(): void
2525
$this->logger->pushHandler($testHandler);
2626

2727
$this->client = new Client(
28-
new RestApi(
28+
RestApi::createWithOAuth(
2929
(string) getenv('CLIENT_ID'),
3030
(string) getenv('CLIENT_SECRET'),
3131
(string) getenv('ACCESS_TOKEN'),

0 commit comments

Comments
 (0)