mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12483] Fix selectors for installing extensions in functional tests
PHPBB3-12483
This commit is contained in:
parent
38c2d42304
commit
916db1a0b1
1 changed files with 3 additions and 2 deletions
|
@ -402,11 +402,12 @@ class phpbb_functional_test_case extends phpbb_test_case
|
|||
$ext_path = str_replace('/', '%2F', $extension);
|
||||
|
||||
$crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=enable_pre&ext_name=' . $ext_path . '&sid=' . $this->sid);
|
||||
$this->assertGreaterThan(0, $crawler->filter('div.errorbox')->count());
|
||||
$this->assertGreaterThan(0, $crawler->filter('.submit-buttons')->count());
|
||||
|
||||
$form = $crawler->selectButton('Enable')->form();
|
||||
$crawler = self::submit($form);
|
||||
$this->assertGreaterThan(0, $crawler->filter('div.successbox')->count());
|
||||
$this->add_lang('acp/extensions');
|
||||
$this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text());
|
||||
|
||||
$this->logout();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue