diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:38:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:38:15 +0000 |
commit | e7d52eb0afa9d878851dc993cb285a7688e99cd1 (patch) | |
tree | 329e113124c2dad2808f53cfeff7d23f670d5071 /test/functional/projects_controller_test.rb | |
parent | 80844362db884361cb0a15b659a71a0db27bb1c6 (diff) | |
download | redmine-e7d52eb0afa9d878851dc993cb285a7688e99cd1.tar.gz redmine-e7d52eb0afa9d878851dc993cb285a7688e99cd1.zip |
Filter after parent project (#29482).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18763 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index fc4d66523..3f4dd6967 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -75,6 +75,25 @@ class ProjectsControllerTest < Redmine::ControllerTest end end + def test_index_with_subproject_filter + @request.session[:user_id] = 1 + + get :index, :params => { + :f => ['parent_id'], + :op => {'parent_id' => '='}, + :v => {'parent_id' => ['1']} + } + + assert_response :success + + assert_select 'div#projects-index ul' do + assert_select 'a.project', 3 + assert_select 'a', :text => 'eCookbook Subproject 1' + assert_select 'a', :text => 'eCookbook Subproject 2' + assert_select 'a', :text => 'Private child of eCookbook' + end + end + def test_autocomplete_js get :autocomplete, :params => { :format => 'js', |