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:
parent
81acd8ef10
commit
92698c95dc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user