mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[ticket/11608] Use assertEquals for more accurate assertions
PHPBB3-11608
This commit is contained in:
parent
5825bf7d33
commit
75d16da9fa
1 changed files with 2 additions and 2 deletions
|
@ -16,14 +16,14 @@ abstract class phpbb_functional_search_test extends phpbb_functional_test_case
|
|||
protected function search_found()
|
||||
{
|
||||
$crawler = self::request('GET', 'search.php?keywords=phpbb3+installation');
|
||||
$this->assertGreaterThan(0, $crawler->filter('.postbody')->count());
|
||||
$this->assertEquals(1, $crawler->filter('.postbody')->count());
|
||||
$this->assertEquals(3, $crawler->filter('.posthilit')->count());
|
||||
}
|
||||
|
||||
protected function search_not_found()
|
||||
{
|
||||
$crawler = self::request('GET', 'search.php?keywords=loremipsumdedo');
|
||||
$this->assertLessThan(1, $crawler->filter('.postbody')->count());
|
||||
$this->assertEquals(0, $crawler->filter('.postbody')->count());
|
||||
}
|
||||
|
||||
public function test_search_backend()
|
||||
|
|
Loading…
Add table
Reference in a new issue