New test data.

This commit is contained in:
James Cole 2016-01-12 21:40:31 +01:00
parent b3a419b2f3
commit 31c336b3b1

View File

@ -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';