Merge pull request #3275 from Haendlerbund/order-item-factory-extension

OrderItemFactory extension
This commit is contained in:
Jitendra Singh 2020-06-18 15:08:41 +05:30 committed by GitHub
commit 49425d0e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ $factory->define(OrderItem::class, function (Faker $faker, array $attributes) {
'qty_invoiced' => 0,
'qty_canceled' => 0,
'qty_refunded' => 0,
'additional' => [],
'order_id' => function () {
return factory(Order::class)->create()->id;
},