Fixed phpunit tests

This commit is contained in:
Jan Böhmer 2025-06-15 22:27:10 +02:00
parent 73253dd03c
commit 70bbb47850
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class TMEClient
public function isUsingPrivateToken(): bool
{
//Private tokens are longer than anonymous ones (50 instead of 45 characters)
return strlen($this->token) > 45;
return strlen($this->settings->apiToken) > 45;
}
/**

View file

@ -44,7 +44,7 @@ class TMEProvider implements InfoProviderInterface
if ($this->tmeClient->isUsingPrivateToken()) {
$this->get_gross_prices = false;
} else {
$this->get_gross_prices = $get_gross_prices;
$this->get_gross_prices = $this->settings->grossPrices;
}
}