mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
code layout cleanup test/functional/issues_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19179 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -6874,8 +6874,10 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_destroy_parent_and_child_issues
|
||||
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)
|
||||
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)
|
||||
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
Reference in New Issue
Block a user