mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Added upload state back to log test
This commit is contained in:
parent
34442362ca
commit
d6bbe15a76
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue