19 lines
528 B
Ruby
19 lines
528 B
Ruby
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
FactoryBot.define do
|
|
factory :online_notification do
|
|
transient do
|
|
o { Ticket.first }
|
|
end
|
|
|
|
object_lookup_id { ObjectLookup.by_name(o.class.name) }
|
|
o_id { o.id }
|
|
type_lookup_id { TypeLookup.by_name('updated') }
|
|
seen { false }
|
|
user_id { 1 }
|
|
created_by_id { 1 }
|
|
updated_by_id { 1 }
|
|
created_at { Time.zone.now }
|
|
updated_at { Time.zone.now }
|
|
end
|
|
end
|