caller_id.rb 395 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :'cti/caller_id', aliases: %i[cti_caller_id caller_id] do
  4. caller_id { '1234567890' }
  5. level { :known }
  6. object { o.class.name.to_sym }
  7. o_id { o.id }
  8. user_id { user.id }
  9. transient do
  10. user { User.last }
  11. o { User.last }
  12. end
  13. end
  14. end