aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_functional_test_case.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-10 20:04:03 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-10 20:30:07 +0200
commit916db1a0b156a953b1917d74924f750864df4701 (patch)
treeb42005be0f2c8e022efc09f87b01aecf527138ba /tests/test_framework/phpbb_functional_test_case.php
parent38c2d42304047d9f7f1457c37bc5496825e14ae3 (diff)
downloadforums-916db1a0b156a953b1917d74924f750864df4701.tar
forums-916db1a0b156a953b1917d74924f750864df4701.tar.gz
forums-916db1a0b156a953b1917d74924f750864df4701.tar.bz2
forums-916db1a0b156a953b1917d74924f750864df4701.tar.xz
forums-916db1a0b156a953b1917d74924f750864df4701.zip
[ticket/12483] Fix selectors for installing extensions in functional tests
PHPBB3-12483
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index 36d577aed7..e4504a5f8d 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -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();
}