mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Refactored a lot of tests.
This commit is contained in:
@@ -84,12 +84,6 @@ class AmountFormat extends Twig_Extension
|
||||
return new Twig_SimpleFunction(
|
||||
'formatAmountByAccount',
|
||||
static function (AccountModel $account, string $amount, bool $coloured = null): string {
|
||||
|
||||
if ('testing' === config('app.env')) {
|
||||
Log::warning('Twig AmountFormat::formatAmountByAccount should NOT be called in the TEST environment!');
|
||||
Log::warning('Make sure AccountRepos and Amount::getDefaultCurrency are mocked.');
|
||||
}
|
||||
|
||||
$coloured = $coloured ?? true;
|
||||
/** @var AccountRepositoryInterface $accountRepos */
|
||||
$accountRepos = app(AccountRepositoryInterface::class);
|
||||
|
Reference in New Issue
Block a user