From 916db1a0b156a953b1917d74924f750864df4701 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 10 Jun 2014 20:04:03 +0200 Subject: [PATCH] [ticket/12483] Fix selectors for installing extensions in functional tests PHPBB3-12483 --- tests/test_framework/phpbb_functional_test_case.php | 5 +++-- 1 file 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(); }