mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-14 04:30:29 +01:00
[ticket/16650] Adjust catalog entries assertion
PHPBB3-16650
This commit is contained in:
parent
2bee8312ab
commit
a368b0f26d
@ -263,10 +263,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
||||
$crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=catalog&sid=' . $this->sid);
|
||||
$this->assertContainsLang('ACP_EXTENSIONS_CATALOG', $this->get_content());
|
||||
|
||||
// Ensure catalog has 20 records (by default) in extensions list
|
||||
$records_per_page = 20;
|
||||
$this->assertEquals($records_per_page, $crawler->filter('tbody > tr > td > strong')->count());
|
||||
$this->assertNotEmpty($crawler->filter('tbody > tr > td > strong')->eq(0)->text());
|
||||
$this->assertNotEmpty($crawler->filter('tbody > tr > td > strong')->eq($records_per_page - 1)->text());
|
||||
// Ensure catalog has any records in extensions list
|
||||
$this->assertGreaterThan(0, $crawler->filter('tbody > tr > td > strong')->count());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user