[ticket/17049] Update tests for defaulting to stable versions

PHPBB3-17049
This commit is contained in:
Marc Alexander 2022-10-16 16:28:00 +02:00
parent 7a5a32fc57
commit 7a7190ff5a
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -268,15 +268,15 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
public function test_extensions_catalog_installing_extension()
{
// Lets check page 6 where 'Scroll Page' and 'Scroll To Top' should be listed
$crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=catalog&start=100&sid=' . $this->sid);
// Lets check page 3 where 'Scroll Page' and 'Scroll To Top' should be listed
$crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=catalog&start=40&sid=' . $this->sid);
$this->assertContainsLang('ACP_EXTENSIONS_CATALOG', $this->get_content());
// Get Install links for both extensions
$scrollpage_install_link = $crawler->filter('tr')->reduce(
function ($node, $i)
{
return (bool) (strpos($node->text(), 'Scroll Page') !== false);
return strpos($node->text(), 'Scroll Page') !== false;
}
)->selectLink($this->lang('INSTALL'))->link();