diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:37:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-10-19 11:37:30 +0000 |
commit | 80844362db884361cb0a15b659a71a0db27bb1c6 (patch) | |
tree | 6142a0341d6689200e5dbd4d80a22f548516df8f /test/functional | |
parent | 6c5440a21b491982c02531c82b4416ef212eb3dc (diff) | |
download | redmine-80844362db884361cb0a15b659a71a0db27bb1c6.tar.gz redmine-80844362db884361cb0a15b659a71a0db27bb1c6.zip |
Filter after projects (#29482).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18762 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-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 cd1476a76..fc4d66523 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -56,6 +56,25 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_select 'feed>entry', :count => Project.visible(User.current).count end + def test_index_with_project_filter_is_my_projects + @request.session[:user_id] = 2 + + get :index, :params => { + :f => ['id'], + :op => {'id' => '='}, + :v => {'id' => ['mine']} + } + + assert_response :success + + assert_select 'div#projects-index ul' do + assert_select 'a.project', 3 + assert_select 'a', :text => 'eCookbook' + assert_select 'a', :text => 'OnlineStore' + assert_select 'a', :text => 'Private child of eCookbook' + end + end + def test_autocomplete_js get :autocomplete, :params => { :format => 'js', |