From b3e42149896a6199ee6225f1f6bad8c4778adf1f Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 16 Nov 2022 09:24:17 +0000 Subject: Add the ability to change the author of an issue (#1739). Patch by Vladimir Kovacik, Jiri Stepanek, Aighan Pacobilch, Olivier Houdas, Takenori TAKAKI, and Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21958 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 1 + test/functional/versions_controller_test.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'test/functional') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index a10abbd12..4d8c00861 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -8306,6 +8306,7 @@ class IssuesControllerTest < Redmine::ControllerTest end def test_destroy_child_issue + User.current = User.find(1) parent = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Parent Issue') child = Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 1, :subject => 'Child Issue', :parent_issue_id => parent.id) assert child.is_descendant_of?(parent.reload) diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb index fdd767560..4e3d07d95 100644 --- a/test/functional/versions_controller_test.rb +++ b/test/functional/versions_controller_test.rb @@ -103,6 +103,7 @@ class VersionsControllerTest < Redmine::ControllerTest end def test_index_should_show_issue_assignee + User.current = User.find_by_login('jsmith') with_settings :gravatar_enabled => '1' do Issue.generate!(:project_id => 3, :fixed_version_id => 4, :assigned_to => User.find_by_login('jsmith')) Issue.generate!(:project_id => 3, :fixed_version_id => 4) -- cgit v1.2.3