mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17049] Update tests for defaulting to stable versions
PHPBB3-17049
This commit is contained in:
parent
7a5a32fc57
commit
7a7190ff5a
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue