mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Seed some tags.
This commit is contained in:
parent
f93e480466
commit
fc886f6bc1
@ -68,6 +68,9 @@ class TestDataSeeder extends Seeder
|
||||
// pay daily groceries:
|
||||
$this->createGroceries($current);
|
||||
|
||||
// create tag (each type of tag, for date):
|
||||
$this->createTags($current);
|
||||
|
||||
// go out for drinks:
|
||||
$this->createDrinksAndOthers($current);
|
||||
|
||||
@ -84,6 +87,23 @@ class TestDataSeeder extends Seeder
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Carbon $date
|
||||
*/
|
||||
protected function createTags(Carbon $date)
|
||||
{
|
||||
Tag::create(
|
||||
[
|
||||
'user_id' => $this->user->id,
|
||||
'tag' => 'SomeTag' . $date->month . '.' . $date->year . '.nothing',
|
||||
'tagMode' => 'nothing',
|
||||
'date' => $date->format('Y-m-d'),
|
||||
|
||||
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user