mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Improve test coverage.
This commit is contained in:
@@ -208,10 +208,6 @@ class General extends Twig_Extension
|
||||
return new Twig_SimpleFunction(
|
||||
'accountGetMetaField',
|
||||
static function (Account $account, string $field): string {
|
||||
if ('testing' === config('app.env')) {
|
||||
Log::warning('Twig General::getMetaField should NOT be called in the TEST environment!');
|
||||
}
|
||||
|
||||
/** @var AccountRepositoryInterface $repository */
|
||||
$repository = app(AccountRepositoryInterface::class);
|
||||
$result = $repository->getMetaValue($account, $field);
|
||||
|
||||
@@ -148,9 +148,6 @@ class TransactionGroupTwig extends Twig_Extension
|
||||
return new Twig_SimpleFunction(
|
||||
'journalHasMeta',
|
||||
static function (int $journalId, string $metaField) {
|
||||
if ('testing' === config('app.env')) {
|
||||
Log::warning('Twig TransactionGroup::journalHasMeta should NOT be called in the TEST environment!');
|
||||
}
|
||||
$count = DB::table('journal_meta')
|
||||
->where('name', $metaField)
|
||||
->where('transaction_journal_id', $journalId)
|
||||
|
||||
Reference in New Issue
Block a user