authorization.rb 393 B

12345678910111213141516
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. FactoryBot.define do
  3. factory :authorization do
  4. transient do
  5. user { create(:customer) }
  6. end
  7. factory :twitter_authorization do
  8. provider { 'twitter' }
  9. uid { Faker::Number.number(digits: 10) }
  10. username { Faker::Internet.username }
  11. user_id { user.id }
  12. end
  13. end
  14. end