summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/account_test.rb2
-rw-r--r--test/integration/admin_test.rb8
-rw-r--r--test/integration/api_test/api_test.rb2
-rw-r--r--test/integration/api_test/attachments_test.rb9
-rw-r--r--test/integration/api_test/authentication_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_attribute_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_test.rb2
-rw-r--r--test/integration/api_test/disabled_rest_api_test.rb8
-rw-r--r--test/integration/api_test/enumerations_test.rb2
-rw-r--r--test/integration/api_test/files_test.rb9
-rw-r--r--test/integration/api_test/groups_test.rb2
-rw-r--r--test/integration/api_test/issue_categories_test.rb6
-rw-r--r--test/integration/api_test/issue_relations_test.rb9
-rw-r--r--test/integration/api_test/issue_statuses_test.rb2
-rw-r--r--test/integration/api_test/issues_test.rb28
-rw-r--r--test/integration/api_test/journals_test.rb7
-rw-r--r--test/integration/api_test/jsonp_test.rb2
-rw-r--r--test/integration/api_test/memberships_test.rb2
-rw-r--r--test/integration/api_test/my_test.rb2
-rw-r--r--test/integration/api_test/news_test.rb11
-rw-r--r--test/integration/api_test/projects_test.rb5
-rw-r--r--test/integration/api_test/queries_test.rb9
-rw-r--r--test/integration/api_test/repositories_test.rb6
-rw-r--r--test/integration/api_test/roles_test.rb2
-rw-r--r--test/integration/api_test/search_test.rb8
-rw-r--r--test/integration/api_test/time_entries_test.rb9
-rw-r--r--test/integration/api_test/trackers_test.rb2
-rw-r--r--test/integration/api_test/users_test.rb2
-rw-r--r--test/integration/api_test/versions_test.rb11
-rw-r--r--test/integration/api_test/wiki_pages_test.rb4
-rw-r--r--test/integration/application_test.rb8
-rw-r--r--test/integration/attachments_test.rb9
-rw-r--r--test/integration/feeds_test.rb5
-rw-r--r--test/integration/issues_test.rb17
-rw-r--r--test/integration/layout_test.rb8
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb16
-rw-r--r--test/integration/lib/redmine/hook_test.rb2
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb9
-rw-r--r--test/integration/projects_test.rb2
-rw-r--r--test/integration/repositories_git_test.rb3
-rw-r--r--test/integration/sessions_test.rb2
-rw-r--r--test/integration/sudo_mode_test.rb2
-rw-r--r--test/integration/twofa_test.rb2
-rw-r--r--test/integration/users_test.rb2
-rw-r--r--test/integration/welcome_test.rb3
-rw-r--r--test/integration/wiki_test.rb12
46 files changed, 0 insertions, 277 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index e40584152..efdc8238f 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class AccountTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses, :roles
-
def test_login
get "/my/page"
assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fmy%2Fpage"
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index 1b9a029bb..8c0965126 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class AdminTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def test_add_user
log_user("admin", "admin")
get "/users/new"
diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb
index d076e81eb..7d848c42d 100644
--- a/test/integration/api_test/api_test.rb
+++ b/test/integration/api_test/api_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
- fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
-
def test_api_should_work_with_protect_from_forgery
ActionController::Base.allow_forgery_protection = true
assert_difference('User.count') do
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb
index a3d4ef21a..9bb079c3d 100644
--- a/test/integration/api_test/attachments_test.rb
+++ b/test/integration/api_test/attachments_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :attachments
-
def setup
super
set_fixtures_attachments_directory
diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb
index aeb5fed15..23641b53a 100644
--- a/test/integration/api_test/authentication_test.rb
+++ b/test/integration/api_test/authentication_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
- fixtures :users
-
def teardown
User.current = nil
end
diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb
index ad7521aa0..0abd643bb 100644
--- a/test/integration/api_test/custom_fields_attribute_test.rb
+++ b/test/integration/api_test/custom_fields_attribute_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base
- fixtures :users
-
def test_integer_custom_fields_should_accept_strings
field = GroupCustomField.generate!(:field_format => 'int')
post(
diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb
index 436fe7171..0df56e59a 100644
--- a/test/integration/api_test/custom_fields_test.rb
+++ b/test/integration/api_test/custom_fields_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base
- fixtures :users, :custom_fields
-
test "GET /custom_fields.xml should return custom fields" do
get '/custom_fields.xml', :headers => credentials('admin')
assert_response :success
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb
index 187d345c2..c95f8fb61 100644
--- a/test/integration/api_test/disabled_rest_api_test.rb
+++ b/test/integration/api_test/disabled_rest_api_test.rb
@@ -20,14 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def setup
Setting.rest_api_enabled = '0'
Setting.login_required = '1'
diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb
index c47dc83fe..25200f7a9 100644
--- a/test/integration/api_test/enumerations_test.rb
+++ b/test/integration/api_test/enumerations_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base
- fixtures :enumerations
-
test "GET /enumerations/issue_priorities.xml should return priorities" do
get '/enumerations/issue_priorities.xml'
assert_response :success
diff --git a/test/integration/api_test/files_test.rb b/test/integration/api_test/files_test.rb
index 1a66d445f..10361aab3 100644
--- a/test/integration/api_test/files_test.rb
+++ b/test/integration/api_test/files_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::FilesTest < Redmine::ApiTest::Base
- fixtures :projects,
- :users,
- :members,
- :roles,
- :member_roles,
- :enabled_modules,
- :attachments,
- :versions
-
test "GET /projects/:project_id/files.xml should return the list of uploaded files" do
get '/projects/1/files.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/groups_test.rb b/test/integration/api_test/groups_test.rb
index fa4cbb205..5c39364b1 100644
--- a/test/integration/api_test/groups_test.rb
+++ b/test/integration/api_test/groups_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
- fixtures :users, :groups_users, :email_addresses
-
test "GET /groups.xml should require authentication" do
get '/groups.xml'
assert_response :unauthorized
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index 676c8d013..cd9c43a44 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -20,12 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :issue_categories, :issues,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
test "GET /projects/:project_id/issue_categories.xml should return the issue categories" do
get '/projects/1/issue_categories.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index 3ac12e276..9885c3939 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :issue_relations
-
test "GET /issues/:issue_id/relations.xml should return issue relations" do
get '/issues/9/relations.xml', :headers => credentials('jsmith')
diff --git a/test/integration/api_test/issue_statuses_test.rb b/test/integration/api_test/issue_statuses_test.rb
index c7a3cd85c..d59cdcc4f 100644
--- a/test/integration/api_test/issue_statuses_test.rb
+++ b/test/integration/api_test/issue_statuses_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
- fixtures :issue_statuses
-
test "GET /issue_statuses.xml should return issue statuses" do
get '/issue_statuses.xml'
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 02840b2ef..df558d797 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -20,34 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
- fixtures(
- :projects,
- :users,
- :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,
- :attachments)
-
test "GET /issues.xml should contain metadata" do
get '/issues.xml'
assert_select 'issues[type=array][total_count][limit="25"][offset="0"]'
diff --git a/test/integration/api_test/journals_test.rb b/test/integration/api_test/journals_test.rb
index 48c6e90d0..9777f90fa 100644
--- a/test/integration/api_test/journals_test.rb
+++ b/test/integration/api_test/journals_test.rb
@@ -20,13 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::JournalTest < Redmine::ApiTest::Base
- fixtures :projects, :issues, :issue_statuses, :journals, :journal_details,
- :issue_relations, :workflows,
- :users, :members, :member_roles, :roles, :enabled_modules,
- :groups_users, :email_addresses,
- :enumerations,
- :projects_trackers, :trackers, :custom_fields
-
test "PUT /journals/:id.xml with valid parameters should update the journal notes" do
put(
'/journals/1.xml',
diff --git a/test/integration/api_test/jsonp_test.rb b/test/integration/api_test/jsonp_test.rb
index fa7ab9b53..b441d8b1b 100644
--- a/test/integration/api_test/jsonp_test.rb
+++ b/test/integration/api_test/jsonp_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::JsonpTest < Redmine::ApiTest::Base
- fixtures :trackers
-
def test_should_ignore_jsonp_callback_with_jsonp_disabled
with_settings :jsonp_enabled => '0' do
get '/trackers.json?jsonp=handler'
diff --git a/test/integration/api_test/memberships_test.rb b/test/integration/api_test/memberships_test.rb
index 0b7c70608..baab2ebb9 100644
--- a/test/integration/api_test/memberships_test.rb
+++ b/test/integration/api_test/memberships_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::MembershipsTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :roles, :members, :member_roles
-
test "GET /projects/:project_id/memberships.xml should return memberships" do
get '/projects/1/memberships.xml', :headers => credentials('jsmith')
diff --git a/test/integration/api_test/my_test.rb b/test/integration/api_test/my_test.rb
index 81a952b2e..e9bbbd78f 100644
--- a/test/integration/api_test/my_test.rb
+++ b/test/integration/api_test/my_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
- fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
-
test "GET /my/account.json should return user" do
assert Setting.rest_api_enabled?
get '/my/account.json', :headers => credentials('dlopper', 'foo')
diff --git a/test/integration/api_test/news_test.rb b/test/integration/api_test/news_test.rb
index 1a3bb824e..bd9f2bb6d 100644
--- a/test/integration/api_test/news_test.rb
+++ b/test/integration/api_test/news_test.rb
@@ -20,17 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :news,
- :comments,
- :attachments
-
test "GET /news.xml should return news" do
get '/news.xml'
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index 0c75d1fb4..f5263690a 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -21,11 +21,6 @@ require_relative '../../test_helper'
class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
include ActiveJob::TestHelper
- fixtures :projects, :versions, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
- :trackers, :projects_trackers, :issue_statuses, :enabled_modules, :enumerations, :boards, :messages,
- :attachments, :custom_fields, :custom_values, :custom_fields_projects, :time_entries, :issue_categories,
- :queries
-
def setup
super
set_tmp_attachments_directory
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb
index 1476e8dbf..e74352567 100644
--- a/test/integration/api_test/queries_test.rb
+++ b/test/integration/api_test/queries_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :queries
-
test "GET /queries.xml should return queries" do
get '/queries.xml'
diff --git a/test/integration/api_test/repositories_test.rb b/test/integration/api_test/repositories_test.rb
index ae59cd8ca..3d8a2679e 100644
--- a/test/integration/api_test/repositories_test.rb
+++ b/test/integration/api_test/repositories_test.rb
@@ -20,12 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::RepositoriesTest < Redmine::ApiTest::Base
- fixtures :users,
- :projects, :enabled_modules,
- :members, :roles, :member_roles,
- :issues,
- :repositories, :changesets, :changes
-
test 'POST /projects/:id/repository/:repository_id/revisions/:rev/issues.xml should add related issue' do
changeset = Changeset.find(103)
assert_equal [], changeset.issue_ids
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb
index 0cd4fd72b..c9dee4bb0 100644
--- a/test/integration/api_test/roles_test.rb
+++ b/test/integration/api_test/roles_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base
- fixtures :roles
-
test "GET /roles.xml should return the roles" do
get '/roles.xml'
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb
index 3226f76c9..dd6ac658b 100644
--- a/test/integration/api_test/search_test.rb
+++ b/test/integration/api_test/search_test.rb
@@ -20,14 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base
- fixtures :projects, :projects_trackers,
- :enabled_modules, :roles, :users, :members, :member_roles,
- :issues, :trackers, :issue_statuses, :enumerations,
- :workflows,
- :custom_fields, :custom_values,
- :custom_fields_projects, :custom_fields_trackers,
- :repositories, :changesets
-
test "GET /search.xml should return xml content" do
get '/search.xml'
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index 66f7cf335..abd634506 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -20,15 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :time_entries
-
test "GET /time_entries.xml should return time entries" do
get '/time_entries.xml', :headers => credentials('jsmith')
assert_response :success
diff --git a/test/integration/api_test/trackers_test.rb b/test/integration/api_test/trackers_test.rb
index b9eeafafd..5770e3ed6 100644
--- a/test/integration/api_test/trackers_test.rb
+++ b/test/integration/api_test/trackers_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::TrackersTest < Redmine::ApiTest::Base
- fixtures :trackers
-
test "GET /trackers.xml should return trackers" do
Tracker.find(2).update_attribute :core_fields, %w[assigned_to_id due_date]
get '/trackers.xml'
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index e977379c0..94ecb52cf 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -20,8 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
- fixtures :users, :groups_users, :email_addresses, :members, :member_roles, :roles, :projects, :auth_sources
-
test "GET /users.xml should return users" do
users = User.active.order('login')
users.last.update(twofa_scheme: 'totp')
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb
index 96d70095c..012739928 100644
--- a/test/integration/api_test/versions_test.rb
+++ b/test/integration/api_test/versions_test.rb
@@ -20,17 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :versions,
- :wikis, :wiki_pages,
- :time_entries
-
test "GET /projects/:project_id/versions.xml should return project versions" do
get '/projects/1/versions.xml'
diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb
index 2aa60304c..f57db5880 100644
--- a/test/integration/api_test/wiki_pages_test.rb
+++ b/test/integration/api_test/wiki_pages_test.rb
@@ -20,10 +20,6 @@
require_relative '../../test_helper'
class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
- fixtures :projects, :users, :roles, :members, :member_roles,
- :enabled_modules, :wikis, :wiki_pages, :wiki_contents,
- :wiki_content_versions, :attachments
-
test "GET /projects/:project_id/wiki/index.xml should return wiki pages" do
get '/projects/ecookbook/wiki/index.xml'
assert_response :ok
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 77c96d89b..bbdedd6d8 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -22,14 +22,6 @@ require_relative '../test_helper'
class ApplicationTest < Redmine::IntegrationTest
include Redmine::I18n
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
def test_set_localization
Setting.default_language = 'en'
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index 910ec6b2c..f6a30d061 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -20,15 +20,6 @@
require_relative '../test_helper'
class AttachmentsTest < Redmine::IntegrationTest
- fixtures :projects, :enabled_modules,
- :users, :email_addresses,
- :roles, :members, :member_roles,
- :trackers, :projects_trackers,
- :issues, :issue_statuses, :enumerations,
- :attachments,
- :wiki_content_versions, :wiki_contents, :wiki_pages,
- :journals, :journal_details
-
def test_upload_should_set_default_content_type
log_user('jsmith', 'jsmith')
assert_difference 'Attachment.count' do
diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb
index c5e1162bd..dffcd9c12 100644
--- a/test/integration/feeds_test.rb
+++ b/test/integration/feeds_test.rb
@@ -20,11 +20,6 @@
require_relative '../test_helper'
class FeedsTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers, :enabled_modules,
- :roles, :member_roles, :members
-
def test_feeds_should_include_icon_tag
get '/projects.atom'
assert_response :success
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index fca3d3981..ac8d432f1 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -20,23 +20,6 @@
require_relative '../test_helper'
class IssuesTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :issue_statuses,
- :issues,
- :enumerations,
- :custom_fields,
- :custom_values,
- :custom_fields_trackers, :custom_fields_projects,
- :attachments,
- :issue_categories
-
# create an issue
def test_add_issue
log_user('jsmith', 'jsmith')
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index bc1a67e01..a1c918ae0 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -20,14 +20,6 @@
require_relative '../test_helper'
class LayoutTest < Redmine::IntegrationTest
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules
-
test "browsing to a missing page should render the base layout" do
get "/users/100000000"
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb
index 0d3590ff4..d6007d7e5 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -20,22 +20,6 @@
require_relative '../../../../test_helper'
class AttachmentFieldFormatTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :issue_statuses,
- :issues,
- :enumerations,
- :custom_fields,
- :custom_values,
- :custom_fields_trackers,
- :attachments
-
def setup
User.current = nil
set_tmp_attachments_directory
diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb
index 922d0267e..61255ffeb 100644
--- a/test/integration/lib/redmine/hook_test.rb
+++ b/test/integration/lib/redmine/hook_test.rb
@@ -20,8 +20,6 @@
require_relative '../../../test_helper'
class HookTest < Redmine::IntegrationTest
- fixtures :users, :roles, :projects, :members, :member_roles
-
# Hooks that are manually registered later
class ProjectBasedTemplate < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context)
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index 4070cdb0c..1e7c1f17f 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -22,15 +22,6 @@ require_relative '../../../test_helper'
class MenuManagerTest < Redmine::IntegrationTest
include Redmine::I18n
- fixtures :projects, :trackers, :issue_statuses, :issues,
- :enumerations, :users, :issue_categories,
- :projects_trackers,
- :roles,
- :member_roles,
- :members,
- :enabled_modules,
- :repositories
-
def test_project_menu_with_specific_locale
get '/projects/ecookbook/issues',
:headers => {'HTTP_ACCEPT_LANGUAGE' => 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3'}
diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb
index 3da9da707..35a39cfce 100644
--- a/test/integration/projects_test.rb
+++ b/test/integration/projects_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class ProjectsTest < Redmine::IntegrationTest
- fixtures :projects, :users, :members, :enabled_modules
-
def test_archive_project
subproject = Project.find(1).children.first
log_user("admin", "admin")
diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb
index 8a33c356e..20d643449 100644
--- a/test/integration/repositories_git_test.rb
+++ b/test/integration/repositories_git_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class RepositoriesGitTest < Redmine::IntegrationTest
- fixtures :projects, :users, :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/integration/sessions_test.rb b/test/integration/sessions_test.rb
index e34184cb7..553cf8f99 100644
--- a/test/integration/sessions_test.rb
+++ b/test/integration/sessions_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class SessionsTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses, :roles
-
def setup
Rails.application.config.redmine_verify_sessions = true
end
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb
index 68a312b83..228e527ed 100644
--- a/test/integration/sudo_mode_test.rb
+++ b/test/integration/sudo_mode_test.rb
@@ -3,8 +3,6 @@
require_relative '../test_helper'
class SudoModeTest < Redmine::IntegrationTest
- fixtures :projects, :members, :member_roles, :roles, :users, :email_addresses
-
def setup
Redmine::SudoMode.stubs(:enabled?).returns(true)
end
diff --git a/test/integration/twofa_test.rb b/test/integration/twofa_test.rb
index 4b33fdfe6..7aa8ec4ac 100644
--- a/test/integration/twofa_test.rb
+++ b/test/integration/twofa_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class TwofaTest < Redmine::IntegrationTest
- fixtures :projects, :users, :email_addresses
-
test "should require twofa setup when configured" do
with_settings twofa: "2" do
assert Setting.twofa_required?
diff --git a/test/integration/users_test.rb b/test/integration/users_test.rb
index 35672e053..115b40ae8 100644
--- a/test/integration/users_test.rb
+++ b/test/integration/users_test.rb
@@ -20,8 +20,6 @@
require_relative '../test_helper'
class UsersTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses
-
def test_destroy_should_not_accept_get_requests
log_user('admin', 'admin')
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index 3097e73e5..8aa6d64be 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -20,9 +20,6 @@
require_relative '../test_helper'
class WelcomeTest < Redmine::IntegrationTest
- fixtures :users, :email_addresses,
- :projects, :enabled_modules, :members, :member_roles, :roles
-
def test_robots
Project.find(3).update_attribute :status, Project::STATUS_CLOSED
diff --git a/test/integration/wiki_test.rb b/test/integration/wiki_test.rb
index e91a9748d..92850c216 100644
--- a/test/integration/wiki_test.rb
+++ b/test/integration/wiki_test.rb
@@ -20,18 +20,6 @@
require_relative '../test_helper'
class WikiIntegrationTest < Redmine::IntegrationTest
- fixtures :projects,
- :users, :email_addresses,
- :roles,
- :members,
- :member_roles,
- :trackers,
- :projects_trackers,
- :enabled_modules,
- :wikis,
- :wiki_pages,
- :wiki_contents
-
def test_updating_a_renamed_page
log_user('jsmith', 'jsmith')