time_accounting.rb 467 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :'ticket/time_accounting', aliases: %i[ticket_time_accounting] do
  4. ticket
  5. time_unit { Faker::Number.unique.number(digits: 2) }
  6. created_by_id { 1 }
  7. trait :for_article do
  8. ticket_article { association :'ticket/article', ticket: ticket }
  9. end
  10. trait :for_type do
  11. type factory: :ticket_time_accounting_type
  12. end
  13. end
  14. end