From 27cfda74fc5085bba8d5baf36450b3f52187dce9 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 14 Feb 2015 23:32:17 +0100 Subject: [ticket/13612] Always display success message if extension was enabled An error will already be triggered if enable_step() is not successful. Redirecting for no obvious reason will just confuse users. PHPBB3-13612 --- tests/test_framework/phpbb_functional_test_case.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tests/test_framework') diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 7479221263..844caa8f54 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -422,14 +422,7 @@ class phpbb_functional_test_case extends phpbb_test_case $meta_refresh = $crawler->filter('meta[http-equiv="refresh"]'); } - if (!empty($meta_refresh)) - { - $this->assertContainsLang('EXTENSIONS_ADMIN', $crawler->filter('.main > h1')->text()); - } - else - { - $this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text()); - } + $this->assertContainsLang('EXTENSION_ENABLE_SUCCESS', $crawler->filter('div.successbox')->text()); $this->logout(); } -- cgit v1.2.1