@@ -53,25 +53,38 @@ public function test_new_idea()
5353 */
5454 public function test_view_ideas_lists ()
5555 {
56- // Access new ideas list
56+ // Test new ideas list
5757 $ crawler = self ::request ('GET ' , "app.php/ideas/list?sid= {$ this ->sid }" );
5858 $ this ->assertContainsLang ('OPEN_IDEAS ' , $ crawler ->filter ('h2 ' )->text ());
5959 $ this ->assertNotContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
6060
61- // Access top ideas list
61+ // Test top ideas list
6262 $ crawler = self ::request ('GET ' , "app.php/ideas/list/top?sid= {$ this ->sid }" );
63- $ this ->assertContainsLang ('TOP_IDEAS ' , $ crawler ->filter ('h2 ' )->text ());
63+ $ this ->assertContainsLang ('LIST_TOP ' , $ crawler ->filter ('h2 ' )->text ());
6464 $ this ->assertNotContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
6565
66- // Access all ideas list
66+ // Test all ideas list
6767 $ crawler = self ::request ('GET ' , "app.php/ideas/list/date?status=-1&sid= {$ this ->sid }" );
6868 $ this ->assertContainsLang ('ALL_IDEAS ' , $ crawler ->filter ('h2 ' )->text ());
6969 $ this ->assertNotContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
7070
71- // Access implemented ideas list (should be empty list)
71+ // Test implemented ideas list (should be empty list)
7272 $ crawler = self ::request ('GET ' , "app.php/ideas/list/date?status=3&sid= {$ this ->sid }" );
73- $ this ->assertContainsLang ('IMPLEMENTED ' , $ crawler ->filter ('h2 ' )->text ());
73+ $ this ->assertContainsLang ('LIST_IMPLEMENTED ' , $ crawler ->filter ('h2 ' )->text ());
7474 $ this ->assertContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
75+
76+ // Test my ideas list is empty when logged out
77+ $ crawler = self ::request ('GET ' , "app.php/ideas/list/egosearch?status=-1&sid= {$ this ->sid }" );
78+ $ this ->assertNotContainsLang ('LIST_EGOSEARCH ' , $ crawler ->filter ('#quick-links ' )->text ());
79+ $ this ->assertContainsLang ('LIST_EGOSEARCH ' , $ crawler ->filter ('h2 ' )->text ());
80+ $ this ->assertContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
81+
82+ // Test my ideas list works when logged in
83+ $ this ->login ();
84+ $ crawler = self ::request ('GET ' , "app.php/ideas/list/egosearch?status=-1&sid= {$ this ->sid }" );
85+ $ this ->assertContainsLang ('LIST_EGOSEARCH ' , $ crawler ->filter ('#quick-links ' )->text ());
86+ $ this ->assertContainsLang ('LIST_EGOSEARCH ' , $ crawler ->filter ('h2 ' )->text ());
87+ $ this ->assertNotContainsLang ('NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )->text ());
7588 }
7689
7790 /**
0 commit comments