@@ -56,22 +56,22 @@ public function test_view_ideas_lists()
5656 // Access new ideas list
5757 $ crawler = self ::request ('GET ' , "app.php/ideas/list?sid= {$ this ->sid }" );
5858 $ this ->assertContainsLang ('OPEN_IDEAS ' , $ crawler ->filter ('h2 ' )->text ());
59- $ this ->assertCount ( 1 , $ crawler ->filter ('.topiclist.forums ' ));
59+ $ this ->assertNotContainsLang ( ' NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )-> text ( ));
6060
6161 // Access top ideas list
6262 $ crawler = self ::request ('GET ' , "app.php/ideas/list/top?sid= {$ this ->sid }" );
6363 $ this ->assertContainsLang ('TOP_IDEAS ' , $ crawler ->filter ('h2 ' )->text ());
64- $ this ->assertCount ( 1 , $ crawler ->filter ('.topiclist.forums ' ));
64+ $ this ->assertNotContainsLang ( ' NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )-> text ( ));
6565
6666 // Access 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 ());
69- $ this ->assertCount ( 1 , $ crawler ->filter ('.topiclist.forums ' ));
69+ $ this ->assertNotContainsLang ( ' NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )-> text ( ));
7070
7171 // Access implemented ideas list (should be empty list)
7272 $ crawler = self ::request ('GET ' , "app.php/ideas/list/date?status=3&sid= {$ this ->sid }" );
7373 $ this ->assertContainsLang ('IMPLEMENTED ' , $ crawler ->filter ('h2 ' )->text ());
74- $ this ->assertCount ( 0 , $ crawler ->filter ('.topiclist.forums ' ));
74+ $ this ->assertContainsLang ( ' NO_IDEAS_DISPLAY ' , $ crawler ->filter ('.topiclist.forums ' )-> text ( ));
7575 }
7676
7777 /**
0 commit comments