mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11608] Use assertions in test
PHPBB3-11608
This commit is contained in:
parent
81acd8ef10
commit
92698c95dc
1 changed files with 2 additions and 4 deletions
|
@ -38,15 +38,13 @@ class phpbb_functional_search_test extends phpbb_functional_test_case
|
||||||
public function search_found()
|
public function search_found()
|
||||||
{
|
{
|
||||||
$crawler = self::request('GET', 'search.php?keywords=phpbb3');
|
$crawler = self::request('GET', 'search.php?keywords=phpbb3');
|
||||||
$crawler->filter('.postbody')->text();
|
$this->assertGreaterThan(0, $crawler->filter('.postbody')->count());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function search_not_found()
|
public function search_not_found()
|
||||||
{
|
{
|
||||||
$this->add_lang('search');
|
|
||||||
$crawler = self::request('GET', 'search.php?keywords=loremipsumdedo');
|
$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)
|
protected function search_backend_test($search_backend)
|
||||||
|
|
Loading…
Add table
Reference in a new issue