Added upload state back to log test

This commit is contained in:
snipe 2017-10-18 04:04:05 -07:00
parent 34442362ca
commit d6bbe15a76

View file

@ -14,6 +14,17 @@ $factory->define(Actionlog::class, function (Faker\Generator $faker) {
});
$factory->defineAs(App\Models\Actionlog::class, 'asset-upload', function ($faker) {
$asset = factory(App\Models\Asset::class)->create();
return [
'item_type' => get_class($asset),
'item_id' => 1,
'user_id' => 1,
'filename' => $faker->word,
'action_type' => 'uploaded'
];
});
$factory->defineAs(Actionlog::class, 'asset-checkout-user', function (Faker\Generator $faker) {
$target = User::inRandomOrder()->first();