From a368b0f26d79ca15f837ffca930ba1569d0da7f4 Mon Sep 17 00:00:00 2001 From: rxu Date: Tue, 19 Jan 2021 00:43:07 +0700 Subject: [PATCH] [ticket/16650] Adjust catalog entries assertion PHPBB3-16650 --- tests/functional/extension_acp_test.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index fad457e0cb..932e28f86e 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -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()); } }