diff --git a/test/unit/ticket_number_test.rb b/test/unit/ticket_number_test.rb index d708aee70..6d41f8651 100644 --- a/test/unit/ticket_number_test.rb +++ b/test/unit/ticket_number_test.rb @@ -60,6 +60,9 @@ class TicketNumberTest < ActiveSupport::TestCase test 'number check' do Setting.set('ticket_number_increment', { checksum: false, min_size: 5 }) + + Setting.set('system_id', 1) + ticket = Ticket.create!( title: 'test 1', group: Group.lookup(name: 'Users'), @@ -134,6 +137,8 @@ class TicketNumberTest < ActiveSupport::TestCase Setting.set('ticket_number', 'Ticket::Number::Date') Setting.set('ticket_number_date', { checksum: false }) + Setting.set('system_id', 1) + ticket = Ticket.create!( title: 'test 1', group: Group.lookup(name: 'Users'),