mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 20:22:07 +00:00
Fix test coverage.
This commit is contained in:
@@ -158,9 +158,9 @@ class EditController extends Controller
|
||||
{
|
||||
$index = 0;
|
||||
$actions = [];
|
||||
|
||||
$currentActions = $rule->ruleActions()->orderBy('order','ASC')->get();
|
||||
/** @var RuleAction $entry */
|
||||
foreach ($rule->ruleActions as $entry) {
|
||||
foreach ($currentActions as $entry) {
|
||||
$count = ($index + 1);
|
||||
try {
|
||||
$actions[] = view(
|
||||
@@ -196,9 +196,9 @@ class EditController extends Controller
|
||||
{
|
||||
$index = 0;
|
||||
$triggers = [];
|
||||
|
||||
$currentTriggers = $rule->ruleTriggers()->orderBy('order','ASC')->get();
|
||||
/** @var RuleTrigger $entry */
|
||||
foreach ($rule->ruleTriggers as $entry) {
|
||||
foreach ($currentTriggers as $entry) {
|
||||
if ('user_action' !== $entry->trigger_type) {
|
||||
$count = ($index + 1);
|
||||
try {
|
||||
|
@@ -155,8 +155,8 @@ class SelectController extends Controller
|
||||
$strict = '1' === $request->get('strict');
|
||||
/** @var TransactionMatcher $matcher */
|
||||
$matcher = app(TransactionMatcher::class);
|
||||
$matcher->setLimit($limit);
|
||||
$matcher->setRange($range);
|
||||
$matcher->setSearchLimit($range);
|
||||
$matcher->setTriggeredLimit($limit);
|
||||
$matcher->setTriggers($triggers);
|
||||
$matcher->setStrict($strict);
|
||||
try {
|
||||
@@ -222,8 +222,8 @@ class SelectController extends Controller
|
||||
|
||||
/** @var TransactionMatcher $matcher */
|
||||
$matcher = app(TransactionMatcher::class);
|
||||
$matcher->setLimit($limit);
|
||||
$matcher->setRange($range);
|
||||
$matcher->setTriggeredLimit($limit);
|
||||
$matcher->setSearchLimit($range);
|
||||
$matcher->setRule($rule);
|
||||
try {
|
||||
$matchingTransactions = $matcher->findTransactionsByRule();
|
||||
|
Reference in New Issue
Block a user