[ticket/16650] Adjust catalog entries assertion

PHPBB3-16650
This commit is contained in:
rxu 2021-01-19 00:43:07 +07:00
parent 2bee8312ab
commit a368b0f26d
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -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); $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=catalog&sid=' . $this->sid);
$this->assertContainsLang('ACP_EXTENSIONS_CATALOG', $this->get_content()); $this->assertContainsLang('ACP_EXTENSIONS_CATALOG', $this->get_content());
// Ensure catalog has 20 records (by default) in extensions list // Ensure catalog has any records in extensions list
$records_per_page = 20; $this->assertGreaterThan(0, $crawler->filter('tbody > tr > td > strong')->count());
$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());
} }
} }