aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-14 23:32:17 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-14 23:41:53 +0100
commit27cfda74fc5085bba8d5baf36450b3f52187dce9 (patch)
treedcf559dab641cd5dc901da21efd658d9ea5cd529 /tests
parent8314ce6871c3e6f28c5bc374d1b73afc85f58b85 (diff)
downloadforums-27cfda74fc5085bba8d5baf36450b3f52187dce9.tar
forums-27cfda74fc5085bba8d5baf36450b3f52187dce9.tar.gz
forums-27cfda74fc5085bba8d5baf36450b3f52187dce9.tar.bz2
forums-27cfda74fc5085bba8d5baf36450b3f52187dce9.tar.xz
forums-27cfda74fc5085bba8d5baf36450b3f52187dce9.zip
[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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php9
1 files changed, 1 insertions, 8 deletions
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();
}