Skip to content

Commit 70bbb47

Browse files
committed
Fixed phpunit tests
1 parent 73253dd commit 70bbb47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Services/InfoProviderSystem/Providers/TMEClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function isUsable(): bool
5959
public function isUsingPrivateToken(): bool
6060
{
6161
//Private tokens are longer than anonymous ones (50 instead of 45 characters)
62-
return strlen($this->token) > 45;
62+
return strlen($this->settings->apiToken) > 45;
6363
}
6464

6565
/**

src/Services/InfoProviderSystem/Providers/TMEProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(private readonly TMEClient $tmeClient, private reado
4444
if ($this->tmeClient->isUsingPrivateToken()) {
4545
$this->get_gross_prices = false;
4646
} else {
47-
$this->get_gross_prices = $get_gross_prices;
47+
$this->get_gross_prices = $this->settings->grossPrices;
4848
}
4949
}
5050

0 commit comments

Comments
 (0)