online_notification.rb 528 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :online_notification do
  4. transient do
  5. o { Ticket.first }
  6. end
  7. object_lookup_id { ObjectLookup.by_name(o.class.name) }
  8. o_id { o.id }
  9. type_lookup_id { TypeLookup.by_name('updated') }
  10. seen { false }
  11. user_id { 1 }
  12. created_by_id { 1 }
  13. updated_by_id { 1 }
  14. created_at { Time.zone.now }
  15. updated_at { Time.zone.now }
  16. end
  17. end