mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
New test data.
This commit is contained in:
parent
b3a419b2f3
commit
31c336b3b1
@ -65,12 +65,24 @@ class TestDataSeeder extends Seeder
|
||||
|
||||
$rule->save();
|
||||
|
||||
// trigger for this rule:
|
||||
// initial trigger for this rule:
|
||||
$ruleTrigger = new RuleTrigger;
|
||||
$ruleTrigger->rule()->associate($rule);
|
||||
$ruleTrigger->order = 1;
|
||||
$ruleTrigger->active = 1;
|
||||
$ruleTrigger->stop_processing = 0;
|
||||
$ruleTrigger->trigger_type = 'user_action';
|
||||
$ruleTrigger->trigger_value = 'create-journal';
|
||||
|
||||
$ruleTrigger->save();
|
||||
unset($ruleTrigger);
|
||||
|
||||
// content trigger for this rule.
|
||||
$ruleTrigger = new RuleTrigger;
|
||||
$ruleTrigger->rule()->associate($rule);
|
||||
$ruleTrigger->order = 2;
|
||||
$ruleTrigger->active = 1;
|
||||
$ruleTrigger->stop_processing = 0;
|
||||
$ruleTrigger->trigger_type = 'description_contains';
|
||||
$ruleTrigger->trigger_value = 'groceries';
|
||||
|
||||
@ -80,7 +92,7 @@ class TestDataSeeder extends Seeder
|
||||
// another
|
||||
$ruleTrigger = new RuleTrigger;
|
||||
$ruleTrigger->rule()->associate($rule);
|
||||
$ruleTrigger->order = 2;
|
||||
$ruleTrigger->order = 3;
|
||||
$ruleTrigger->active = 1;
|
||||
$ruleTrigger->stop_processing = 0;
|
||||
$ruleTrigger->trigger_type = 'from_account_is';
|
||||
|
Loading…
Reference in New Issue
Block a user