mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-20 01:29:17 +02:00
Fixed phpunit tests
This commit is contained in:
parent
73253dd03c
commit
70bbb47850
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class TMEClient
|
||||||
public function isUsingPrivateToken(): bool
|
public function isUsingPrivateToken(): bool
|
||||||
{
|
{
|
||||||
//Private tokens are longer than anonymous ones (50 instead of 45 characters)
|
//Private tokens are longer than anonymous ones (50 instead of 45 characters)
|
||||||
return strlen($this->token) > 45;
|
return strlen($this->settings->apiToken) > 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -44,7 +44,7 @@ class TMEProvider implements InfoProviderInterface
|
||||||
if ($this->tmeClient->isUsingPrivateToken()) {
|
if ($this->tmeClient->isUsingPrivateToken()) {
|
||||||
$this->get_gross_prices = false;
|
$this->get_gross_prices = false;
|
||||||
} else {
|
} else {
|
||||||
$this->get_gross_prices = $get_gross_prices;
|
$this->get_gross_prices = $this->settings->grossPrices;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue