diff --git a/tests/functional/search_test.php b/tests/functional/search_test.php index ac3cf4503c..9cb2eff045 100644 --- a/tests/functional/search_test.php +++ b/tests/functional/search_test.php @@ -38,15 +38,13 @@ class phpbb_functional_search_test extends phpbb_functional_test_case public function search_found() { $crawler = self::request('GET', 'search.php?keywords=phpbb3'); - $crawler->filter('.postbody')->text(); + $this->assertGreaterThan(0, $crawler->filter('.postbody')->count()); } public function search_not_found() { - $this->add_lang('search'); $crawler = self::request('GET', 'search.php?keywords=loremipsumdedo'); - $this->assertContains($this->lang('NO_SEARCH_RESULTS'), $crawler->text()); - + $this->assertLessThan(1, $crawler->filter('.postbody')->count()); } protected function search_backend_test($search_backend)