1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-04 05:25:01 +02:00

[ticket/11608] Use assertions in test

PHPBB3-11608
This commit is contained in:
Dhruv 2013-06-14 01:33:32 +05:30
parent 81acd8ef10
commit 92698c95dc

View File

@ -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)