mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix tests and fix coverage.
This commit is contained in:
@@ -36,7 +36,7 @@ class Amount
|
||||
public function getCurrencySymbol()
|
||||
{
|
||||
if (defined('FFCURRENCYSYMBOL')) {
|
||||
return FFCURRENCYSYMBOL;
|
||||
return FFCURRENCYSYMBOL; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
||||
@@ -149,7 +149,7 @@ class Amount
|
||||
public function getCurrencyCode()
|
||||
{
|
||||
if (defined('FFCURRENCYCODE')) {
|
||||
return FFCURRENCYCODE;
|
||||
return FFCURRENCYCODE; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
|
||||
|
@@ -9,6 +9,7 @@ use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Collection as EloquentCollection;
|
||||
use Illuminate\Support\Collection;
|
||||
use Preferences as Prefs;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class CacheProperties
|
||||
@@ -62,6 +63,9 @@ class CacheProperties
|
||||
*/
|
||||
public function has()
|
||||
{
|
||||
if(getenv('APP_ENV') == 'testing') {
|
||||
return false;
|
||||
}
|
||||
$this->md5();
|
||||
|
||||
return Cache::has($this->md5);
|
||||
|
@@ -36,7 +36,6 @@ class Preferences
|
||||
return Cache::get($fullName);
|
||||
}
|
||||
|
||||
|
||||
$preference = Preference::where('user_id', Auth::user()->id)->where('name', $name)->first(['id', 'name', 'data_encrypted']);
|
||||
|
||||
if ($preference) {
|
||||
|
Reference in New Issue
Block a user