diff options
Diffstat (limited to 'test/functional')
64 files changed, 0 insertions, 416 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 4954f3292..e62dce943 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class AccountControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses, :roles - def setup User.current = nil end diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb index 3fb0c1fbc..85f0767f7 100644 --- a/test/functional/activities_controller_test.rb +++ b/test/functional/activities_controller_test.rb @@ -20,17 +20,6 @@ require_relative '../test_helper' class ActivitiesControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :groups_users, - :enabled_modules, - :journals, :journal_details, - :attachments, :changesets, :documents, :messages, :news, :time_entries, :wiki_content_versions - def test_project_index get( :index, diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb index 41f12300f..3c8f50fdf 100644 --- a/test/functional/admin_controller_test.rb +++ b/test/functional/admin_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class AdminControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :roles - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 61c71b312..04fdb15d2 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class AttachmentsControllerTest < Redmine::ControllerTest - fixtures :users, :user_preferences, :projects, :roles, :members, :member_roles, - :enabled_modules, :issues, :trackers, :attachments, :issue_statuses, :journals, :journal_details, - :versions, :wiki_pages, :wikis, :documents, :enumerations - def setup User.current = nil set_fixtures_attachments_directory diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb index ad1d83f93..292b15bf4 100644 --- a/test/functional/attachments_visibility_test.rb +++ b/test/functional/attachments_visibility_test.rb @@ -21,11 +21,6 @@ require_relative '../test_helper' class AttachmentsVisibilityTest < Redmine::ControllerTest tests AttachmentsController - fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, - :enabled_modules, :projects_trackers, :issue_statuses, :enumerations, - :issues, :trackers, :versions, - :custom_fields, :custom_fields_trackers, :custom_fields_projects - def setup User.current = nil set_tmp_attachments_directory diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb index e470e8e1b..7909ef961 100644 --- a/test/functional/auth_sources_controller_test.rb +++ b/test/functional/auth_sources_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class AuthSourcesControllerTest < Redmine::ControllerTest - fixtures :users, :auth_sources - def setup @request.session[:user_id] = 1 end diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb index c88178400..0bf9bc5e5 100644 --- a/test/functional/auto_completes_controller_test.rb +++ b/test/functional/auto_completes_controller_test.rb @@ -20,17 +20,6 @@ require_relative '../test_helper' class AutoCompletesControllerTest < Redmine::ControllerTest - fixtures :projects, :issues, :issue_statuses, - :enumerations, :users, :issue_categories, - :trackers, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :journals, :journal_details, - :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions - def test_issues_should_not_be_case_sensitive get( :issues, diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb index 4062c3fb8..078b324e4 100644 --- a/test/functional/boards_controller_test.rb +++ b/test/functional/boards_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class BoardsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules - def setup User.current = nil end diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index ecf9e5597..227919435 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -20,22 +20,6 @@ require_relative '../test_helper' class CalendarsControllerTest < Redmine::ControllerTest - fixtures :projects, - :trackers, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :issues, - :issue_statuses, - :issue_relations, - :issue_categories, - :enumerations, - :queries, - :users, :email_addresses, - :versions - def test_show # Ensure that an issue to which a user is assigned is in the current # month's calendar in order to test Gravatar diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb index e1118f77e..a76700e62 100644 --- a/test/functional/comments_controller_test.rb +++ b/test/functional/comments_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class CommentsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news, :comments - def setup User.current = nil end diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index e10d2309c..34d543583 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -20,22 +20,6 @@ require_relative '../test_helper' class ContextMenusControllerTest < Redmine::ControllerTest - fixtures :projects, - :trackers, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :workflows, - :journals, :journal_details, - :versions, - :issues, :issue_statuses, :issue_categories, - :users, - :enumerations, - :time_entries, - :custom_fields, :custom_fields_trackers, :custom_fields_projects - def test_context_menu_one_issue_should_link_to_issue_path @request.session[:user_id] = 2 get( diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb index e74790495..7a93baa1f 100644 --- a/test/functional/custom_field_enumerations_controller_test.rb +++ b/test/functional/custom_field_enumerations_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses - def setup @request.session[:user_id] = 1 @field = GroupCustomField.create!(:name => 'List', :field_format => 'enumeration', :is_required => false) diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb index b3fa614ba..0706a2eda 100644 --- a/test/functional/custom_fields_controller_test.rb +++ b/test/functional/custom_fields_controller_test.rb @@ -20,19 +20,6 @@ require_relative '../test_helper' class CustomFieldsControllerTest < Redmine::ControllerTest - fixtures :custom_fields, :custom_values, - :custom_fields_projects, :custom_fields_trackers, - :roles, :users, - :members, :member_roles, - :groups_users, - :trackers, :projects_trackers, - :enabled_modules, - :projects, :issues, - :issue_statuses, - :issue_categories, - :enumerations, - :workflows - def setup @request.session[:user_id] = 1 end diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb index beb0718a9..b59ecdc81 100644 --- a/test/functional/documents_controller_test.rb +++ b/test/functional/documents_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class DocumentsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :enabled_modules, :documents, :enumerations, - :groups_users, :attachments, :user_preferences - def setup User.current = nil end diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb index 426547907..89788ea47 100644 --- a/test/functional/email_addresses_controller_test.rb +++ b/test/functional/email_addresses_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class EmailAddressesControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses - def setup User.current = nil end diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb index a87d72d9f..374fc9ada 100644 --- a/test/functional/enumerations_controller_test.rb +++ b/test/functional/enumerations_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class EnumerationsControllerTest < Redmine::ControllerTest - fixtures :enumerations, :issues, :users - def setup @request.session[:user_id] = 1 # admin end diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb index 4cc5c972b..57db1579b 100644 --- a/test/functional/files_controller_test.rb +++ b/test/functional/files_controller_test.rb @@ -20,19 +20,6 @@ require_relative '../test_helper' class FilesControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, - :email_addresses, - :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :journals, :journal_details, - :attachments, - :versions - def setup @request.session[:user_id] = nil Setting.default_language = 'en' diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb index 48dfc8ae7..daba816b8 100644 --- a/test/functional/gantts_controller_test.rb +++ b/test/functional/gantts_controller_test.rb @@ -20,16 +20,6 @@ require_relative '../test_helper' class GanttsControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :versions, - :email_addresses - def test_gantt_should_work i2 = Issue.find(2) i2.update_attribute(:due_date, 1.month.from_now) diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb index ede4efce3..e9156c88c 100644 --- a/test/functional/groups_controller_test.rb +++ b/test/functional/groups_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class GroupsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :members, :member_roles, :roles, :groups_users - def setup @request.session[:user_id] = 1 end diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb index 27838aba9..c91cc4bda 100644 --- a/test/functional/help_controller_test.rb +++ b/test/functional/help_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class HelpControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses - def test_get_help_wiki_syntax formatters = { :textile => "Wiki Syntax Quick Reference", diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb index ad1e1aade..f1c477019 100644 --- a/test/functional/imports_controller_test.rb +++ b/test/functional/imports_controller_test.rb @@ -20,20 +20,6 @@ require_relative '../test_helper' class ImportsControllerTest < Redmine::ControllerTest - fixtures :projects, :enabled_modules, - :users, :email_addresses, :user_preferences, - :roles, :members, :member_roles, - :issues, :issue_statuses, - :trackers, :projects_trackers, - :versions, - :issue_categories, - :enumerations, - :workflows, - :custom_fields, - :custom_values, - :custom_fields_projects, - :custom_fields_trackers - include Redmine::I18n def setup diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb index 62b2d42e4..9b3448216 100644 --- a/test/functional/issue_categories_controller_test.rb +++ b/test/functional/issue_categories_controller_test.rb @@ -20,9 +20,6 @@ require_relative '../test_helper' class IssueCategoriesControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories, - :issues - def setup User.current = nil @request.session[:user_id] = 2 diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb index fadf1011b..b01263c87 100644 --- a/test/functional/issue_relations_controller_test.rb +++ b/test/functional/issue_relations_controller_test.rb @@ -20,19 +20,6 @@ require_relative '../test_helper' class IssueRelationsControllerTest < Redmine::ControllerTest - fixtures :projects, - :users, - :roles, - :members, - :member_roles, - :issues, - :issue_statuses, - :issue_relations, - :enabled_modules, - :enumerations, - :trackers, - :projects_trackers - def setup User.current = nil @request.session[:user_id] = 3 diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb index c7594f9a0..b3129d1d9 100644 --- a/test/functional/issue_statuses_controller_test.rb +++ b/test/functional/issue_statuses_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class IssueStatusesControllerTest < Redmine::ControllerTest - fixtures :issue_statuses, :issues, :users, :trackers, :workflows - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 643345eac..2ed9ac9ea 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -20,34 +20,6 @@ require_relative '../test_helper' class IssuesControllerTest < Redmine::ControllerTest - fixtures :projects, - :users, :email_addresses, :user_preferences, - :roles, - :members, - :member_roles, - :issues, - :issue_statuses, - :issue_relations, - :versions, - :trackers, - :projects_trackers, - :issue_categories, - :enabled_modules, - :enumerations, - :attachments, - :workflows, - :custom_fields, - :custom_values, - :custom_fields_projects, - :custom_fields_trackers, - :time_entries, - :journals, - :journal_details, - :queries, - :repositories, - :changesets, - :watchers, :groups_users - include Redmine::I18n def setup diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb index 5f7d5ba6b..3677ebf86 100644 --- a/test/functional/issues_controller_transaction_test.rb +++ b/test/functional/issues_controller_transaction_test.rb @@ -22,30 +22,6 @@ require 'issues_controller' class IssuesControllerTransactionTest < Redmine::ControllerTest tests IssuesController - fixtures :projects, - :users, - :roles, - :members, - :member_roles, - :issues, - :issue_statuses, - :versions, - :trackers, - :projects_trackers, - :issue_categories, - :enabled_modules, - :enumerations, - :attachments, - :workflows, - :custom_fields, - :custom_values, - :custom_fields_projects, - :custom_fields_trackers, - :time_entries, - :journals, - :journal_details, - :queries - self.use_transactional_tests = false def setup diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb index c19872134..3955ef861 100644 --- a/test/functional/issues_custom_fields_visibility_test.rb +++ b/test/functional/issues_custom_fields_visibility_test.rb @@ -21,19 +21,6 @@ require_relative '../test_helper' class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest tests IssuesController - fixtures :projects, - :users, :email_addresses, :user_preferences, - :roles, - :members, - :member_roles, - :issue_statuses, - :trackers, - :projects_trackers, - :enabled_modules, - :enumerations, - :workflows, - :custom_fields, :custom_fields_trackers - def setup CustomField.destroy_all Issue.delete_all diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb index 26419e33b..f6549910a 100644 --- a/test/functional/journals_controller_test.rb +++ b/test/functional/journals_controller_test.rb @@ -20,11 +20,6 @@ require_relative '../test_helper' class JournalsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :members, :member_roles, :roles, - :issues, :journals, :journal_details, :enabled_modules, - :trackers, :issue_statuses, :enumerations, :custom_fields, - :custom_values, :custom_fields_projects, :projects_trackers - def setup User.current = nil end diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb index 16eb1fbe2..b27f3dc8a 100644 --- a/test/functional/mail_handler_controller_test.rb +++ b/test/functional/mail_handler_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class MailHandlerControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses, :projects, :enabled_modules, - :roles, :members, :member_roles, :issues, :issue_statuses, - :trackers, :projects_trackers, :enumerations, :versions - FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures/mail_handler' def setup diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb index e97999f13..7e1d96dca 100644 --- a/test/functional/members_controller_test.rb +++ b/test/functional/members_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class MembersControllerTest < Redmine::ControllerTest - fixtures :projects, :members, :member_roles, :roles, :users - def setup User.current = nil @request.session[:user_id] = 2 diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb index 494628b8c..74b9a3070 100644 --- a/test/functional/messages_controller_test.rb +++ b/test/functional/messages_controller_test.rb @@ -20,9 +20,6 @@ require_relative '../test_helper' class MessagesControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, :boards, :messages, :enabled_modules, - :watchers - def setup User.current = nil end diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index b311854f1..342c97a3d 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -20,12 +20,6 @@ require_relative '../test_helper' class MyControllerTest < Redmine::ControllerTest - fixtures :users, :email_addresses, :user_preferences, - :roles, :projects, :members, :member_roles, - :issues, :issue_statuses, :trackers, :enumerations, - :custom_fields, :auth_sources, :queries, :enabled_modules, - :journals, :projects_trackers, :issue_categories - def setup @request.session[:user_id] = 2 end diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index fbd609d1e..f1ddfff71 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class NewsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :enabled_modules, :news, :comments, - :attachments, :user_preferences - def setup User.current = nil end diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb index 49df91dd3..0dc537ccf 100644 --- a/test/functional/previews_controller_test.rb +++ b/test/functional/previews_controller_test.rb @@ -20,16 +20,6 @@ require_relative '../test_helper' class PreviewsControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :journals, :journal_details, - :news - def test_preview_new_issue_description @request.session[:user_id] = 2 post( diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb index 35eb3b665..fe6c1bf1c 100644 --- a/test/functional/principal_memberships_controller_test.rb +++ b/test/functional/principal_memberships_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class PrincipalMembershipsControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :members, :member_roles, :roles, :groups_users - def setup @request.session[:user_id] = 1 end diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb index 1d6d4b5b6..95130db14 100644 --- a/test/functional/project_enumerations_controller_test.rb +++ b/test/functional/project_enumerations_controller_test.rb @@ -20,17 +20,6 @@ require_relative '../test_helper' class ProjectEnumerationsControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :custom_fields, :custom_fields_projects, - :custom_fields_trackers, :custom_values, - :time_entries - self.use_transactional_tests = false def setup diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 41b8fb6b9..88851262d 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -20,14 +20,6 @@ require_relative '../test_helper' class ProjectsControllerTest < Redmine::ControllerTest - fixtures :projects, :versions, :users, :email_addresses, :roles, :members, - :member_roles, :issues, :journals, :journal_details, - :trackers, :projects_trackers, :issue_statuses, - :enabled_modules, :enumerations, :boards, :messages, - :attachments, :custom_fields, :custom_values, :time_entries, - :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions, - :roles, :queries, :issue_categories - include Redmine::I18n def setup diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb index 7c8b5cd9a..28423366e 100644 --- a/test/functional/queries_controller_test.rb +++ b/test/functional/queries_controller_test.rb @@ -20,13 +20,6 @@ require_relative '../test_helper' class QueriesControllerTest < Redmine::ControllerTest - fixtures :projects, :enabled_modules, - :users, :email_addresses, - :members, :member_roles, :roles, - :trackers, :issue_statuses, :issue_categories, :enumerations, :versions, - :issues, :custom_fields, :custom_values, - :queries - def setup User.current = nil end diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb index a68c13536..96a56feeb 100644 --- a/test/functional/reports_controller_test.rb +++ b/test/functional/reports_controller_test.rb @@ -20,16 +20,6 @@ require_relative '../test_helper' class ReportsControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :enumerations, :users, :issue_categories, - :projects_trackers, - :roles, - :member_roles, - :members, - :enabled_modules, - :versions, - :workflows - def test_get_issue_report get( :issue_report, diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb index cf1cb52c2..2122bf3b9 100644 --- a/test/functional/repositories_bazaar_controller_test.rb +++ b/test/functional/repositories_bazaar_controller_test.rb @@ -22,9 +22,6 @@ require_relative '../test_helper' class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :repositories, :enabled_modules - REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s REPOSITORY_PATH_TRUNK = File.join(REPOSITORY_PATH, "trunk") PRJ_ID = 3 diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb index e73066809..beae44f68 100644 --- a/test/functional/repositories_controller_test.rb +++ b/test/functional/repositories_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class RepositoriesControllerTest < Redmine::RepositoryControllerTest - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, - :repositories, :issues, :issue_statuses, :changesets, :changes, - :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers - def setup super User.current = nil diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb index 9c0e50526..558e58d0a 100644 --- a/test/functional/repositories_cvs_controller_test.rb +++ b/test/functional/repositories_cvs_controller_test.rb @@ -22,9 +22,6 @@ require_relative '../test_helper' class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :repositories, :enabled_modules - REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin? # CVS module diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index 0bcb690f3..fea63bcea 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -22,9 +22,6 @@ require_relative '../test_helper' class RepositoriesFilesystemControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :repositories, :enabled_modules - REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s PRJ_ID = 3 diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 9fecaf8a0..32fa90e29 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -22,9 +22,6 @@ require_relative '../test_helper' class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :repositories, :enabled_modules - REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s REPOSITORY_PATH.tr!('/', "\\") if Redmine::Platform.mswin? PRJ_ID = 3 diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 9e0d398b1..4af2fcf99 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -22,9 +22,6 @@ require_relative '../test_helper' class RepositoriesMercurialControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :repositories, :enabled_modules - REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s PRJ_ID = 3 NUM_REV = 43 diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 7b32fa1f7..60dd213e4 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -22,10 +22,6 @@ require_relative '../test_helper' class RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest tests RepositoriesController - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, - :repositories, :issues, :issue_statuses, :changesets, :changes, - :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers - PRJ_ID = 3 NUM_REV = 16 diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb index 0918be6f0..c343b9bd6 100644 --- a/test/functional/roles_controller_test.rb +++ b/test/functional/roles_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class RolesControllerTest < Redmine::ControllerTest - fixtures :roles, :users, :members, :member_roles, :workflows, :trackers - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb index d9a397343..1a624c3c7 100644 --- a/test/functional/search_controller_test.rb +++ b/test/functional/search_controller_test.rb @@ -20,15 +20,6 @@ require_relative '../test_helper' class SearchControllerTest < Redmine::ControllerTest - fixtures :projects, :projects_trackers, - :enabled_modules, :roles, :users, :members, :member_roles, - :issues, :trackers, :issue_statuses, :enumerations, - :issue_categories, :workflows, - :custom_fields, :custom_values, - :custom_fields_projects, :custom_fields_trackers, - :repositories, :changesets, - :user_preferences - def setup User.current = nil end diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb index e79f9664e..3308792dc 100644 --- a/test/functional/search_custom_fields_visibility_test.rb +++ b/test/functional/search_custom_fields_visibility_test.rb @@ -21,19 +21,6 @@ require_relative '../test_helper' class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest tests SearchController - fixtures :projects, - :users, - :roles, - :members, - :member_roles, - :issue_statuses, - :trackers, - :projects_trackers, - :enabled_modules, - :enumerations, - :workflows, - :custom_fields, :custom_fields_trackers - def setup field_attributes = {:field_format => 'string', :is_for_all => true, :is_filter => true, :searchable => true, :trackers => Tracker.all} @fields = [] diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb index cc09ad6cd..a6171f311 100644 --- a/test/functional/sessions_controller_test.rb +++ b/test/functional/sessions_controller_test.rb @@ -23,8 +23,6 @@ class SessionsControllerTest < Redmine::ControllerTest include Redmine::I18n tests WelcomeController - fixtures :users, :email_addresses - def setup Rails.application.config.redmine_verify_sessions = true end diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index 3c013146e..e1b155a92 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -20,9 +20,6 @@ require_relative '../test_helper' class SettingsControllerTest < Redmine::ControllerTest - fixtures :projects, :trackers, :issue_statuses, :issues, - :users, :email_addresses - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb index 17e03b133..7c4bab6a2 100644 --- a/test/functional/sys_controller_test.rb +++ b/test/functional/sys_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class SysControllerTest < Redmine::ControllerTest - fixtures :projects, :repositories, :enabled_modules - def setup Setting.sys_api_enabled = '1' Setting.enabled_scm = %w(Subversion Git) diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 93b4c271b..bc0dfebb9 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -20,13 +20,6 @@ require_relative '../test_helper' class TimelogControllerTest < Redmine::ControllerTest - fixtures :projects, :enabled_modules, :roles, :members, - :member_roles, :issues, :time_entries, :users, :email_addresses, - :trackers, :enumerations, :issue_statuses, - :custom_fields, :custom_values, - :projects_trackers, :custom_fields_trackers, - :custom_fields_projects, :issue_categories, :versions - include Redmine::I18n def setup diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb index 0daf90a22..87023b864 100644 --- a/test/functional/timelog_custom_fields_visibility_test.rb +++ b/test/functional/timelog_custom_fields_visibility_test.rb @@ -21,19 +21,6 @@ require_relative '../test_helper' class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest tests TimelogController - fixtures :projects, - :users, :email_addresses, - :roles, - :members, - :member_roles, - :issues, :issue_statuses, - :trackers, - :projects_trackers, - :enabled_modules, - :time_entries, :enumerations, - :workflows, - :custom_fields, :custom_values, :custom_fields_trackers - def test_index_should_show_visible_custom_fields_only prepare_test_data diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb index 0433442dd..b203d07c2 100644 --- a/test/functional/timelog_report_test.rb +++ b/test/functional/timelog_report_test.rb @@ -22,13 +22,6 @@ require_relative '../test_helper' class TimelogReportTest < Redmine::ControllerTest tests TimelogController - fixtures :projects, :enabled_modules, :roles, :members, :member_roles, - :email_addresses, - :issues, :time_entries, :users, :trackers, :enumerations, - :issue_statuses, :custom_fields, :custom_values, - :projects_trackers, :custom_fields_trackers, - :custom_fields_projects - include Redmine::I18n def setup diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb index 61364fc07..f3f614198 100644 --- a/test/functional/trackers_controller_test.rb +++ b/test/functional/trackers_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class TrackersControllerTest < Redmine::ControllerTest - fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses, :enumerations; - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 207c8afa5..ee7256086 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -22,13 +22,6 @@ require_relative '../test_helper' class UsersControllerTest < Redmine::ControllerTest include Redmine::I18n - fixtures :users, :user_preferences, :email_addresses, :projects, :members, :member_roles, :roles, - :custom_fields, :custom_values, :groups_users, - :auth_sources, - :enabled_modules, - :issues, :issue_statuses, - :trackers - def setup User.current = nil @request.session[:user_id] = 1 # admin diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index 0bd7019da..405e6480b 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -21,13 +21,6 @@ require_relative '../test_helper' class VersionsControllerTest < Redmine::ControllerTest include Redmine::I18n - fixtures :projects, :enabled_modules, - :trackers, :projects_trackers, - :versions, :issue_statuses, :issue_categories, :enumerations, - :issues, - :users, :email_addresses, - :roles, :members, :member_roles - def setup User.current = nil end diff --git a/test/functional/versions_custom_fields_visibility_test.rb b/test/functional/versions_custom_fields_visibility_test.rb index 2e0c15451..1d07bc376 100644 --- a/test/functional/versions_custom_fields_visibility_test.rb +++ b/test/functional/versions_custom_fields_visibility_test.rb @@ -21,18 +21,6 @@ require_relative '../test_helper' class VersionsCustomFieldsVisibilityTest < Redmine::ControllerTest tests VersionsController - fixtures :projects, - :users, :email_addresses, - :roles, - :members, - :member_roles, - :issue_statuses, - :trackers, - :projects_trackers, - :enabled_modules, - :versions, - :custom_fields, :custom_values, :custom_fields_trackers - def test_show_should_display_only_custom_fields_visible_to_user cf1 = VersionCustomField.create!(:name => 'cf1', :field_format => 'string') cf2 = VersionCustomField.create!(:name => 'cf2', :field_format => 'string', :visible => false, :role_ids => [1]) diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb index c256673fa..c73b84702 100644 --- a/test/functional/watchers_controller_test.rb +++ b/test/functional/watchers_controller_test.rb @@ -20,10 +20,6 @@ require_relative '../test_helper' class WatchersControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, - :issues, :trackers, :projects_trackers, :issue_statuses, :enumerations, :watchers, - :boards, :messages, :wikis, :wiki_pages - def setup User.current = nil end diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index fde599383..ba1a30235 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class WelcomeControllerTest < Redmine::ControllerTest - fixtures :projects, :news, :users, :members, :roles, :member_roles, :enabled_modules - def setup Setting.default_language = 'en' User.current = nil diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 9d94f5c20..04b687531 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -20,11 +20,6 @@ require_relative '../test_helper' class WikiControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, - :enabled_modules, :wikis, :wiki_pages, :wiki_contents, - :wiki_content_versions, :attachments, - :issues, :issue_statuses, :trackers, :watchers - def setup User.current = nil end diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb index 1f5bf8948..20ce56f27 100644 --- a/test/functional/wikis_controller_test.rb +++ b/test/functional/wikis_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class WikisControllerTest < Redmine::ControllerTest - fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis - def setup User.current = nil end diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb index 36fb311d9..b30559d80 100644 --- a/test/functional/workflows_controller_test.rb +++ b/test/functional/workflows_controller_test.rb @@ -20,8 +20,6 @@ require_relative '../test_helper' class WorkflowsControllerTest < Redmine::ControllerTest - fixtures :roles, :trackers, :workflows, :users, :issue_statuses, :custom_fields - def setup User.current = nil @request.session[:user_id] = 1 # admin |