mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Add sample order to sample data
This commit is contained in:
@@ -10,6 +10,7 @@ require "tasks/sample_data/product_factory"
|
||||
require "tasks/sample_data/shipping_method_factory"
|
||||
require "tasks/sample_data/taxon_factory"
|
||||
require "tasks/sample_data/user_factory"
|
||||
require "tasks/sample_data/order_factory"
|
||||
|
||||
# The sample data generated by this task is supposed to save some time during
|
||||
# manual testing. It is not meant to be complete, but we try to improve it
|
||||
@@ -49,6 +50,8 @@ namespace :ofn do
|
||||
CustomerFactory.new.create_samples(users)
|
||||
|
||||
GroupFactory.new.create_samples
|
||||
|
||||
OrderFactory.new.create_samples
|
||||
end
|
||||
|
||||
def seeded?
|
||||
|
||||
Reference in New Issue
Block a user