online_notification.rb 566 B

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