summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-11-16 09:24:17 +0000
committerGo MAEDA <maeda@farend.jp>2022-11-16 09:24:17 +0000
commitb3e42149896a6199ee6225f1f6bad8c4778adf1f (patch)
treefdbf124a205bc3fe76d8e20a88b52ca43ce4095c /test/functional
parentf972b5bfa655972b2d469dc79c3b9ba3a971d457 (diff)
downloadredmine-b3e42149896a6199ee6225f1f6bad8c4778adf1f.tar.gz
redmine-b3e42149896a6199ee6225f1f6bad8c4778adf1f.zip
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
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb1
-rw-r--r--test/functional/versions_controller_test.rb1
2 files changed, 2 insertions, 0 deletions
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)