aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/extension_acp_test.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-12 14:40:03 -0800
committerCesar G <prototech91@gmail.com>2013-12-12 14:40:03 -0800
commitc42bd28d172a9ae7439cc3868ebfda87e93f3490 (patch)
tree40fee8bfa4ed9c2ee2ba2ab9b69d22f22f921cea /tests/functional/extension_acp_test.php
parent2735982c551d6537bd49fda265c82fdd3471fa36 (diff)
downloadforums-c42bd28d172a9ae7439cc3868ebfda87e93f3490.tar
forums-c42bd28d172a9ae7439cc3868ebfda87e93f3490.tar.gz
forums-c42bd28d172a9ae7439cc3868ebfda87e93f3490.tar.bz2
forums-c42bd28d172a9ae7439cc3868ebfda87e93f3490.tar.xz
forums-c42bd28d172a9ae7439cc3868ebfda87e93f3490.zip
[ticket/12009] Prevent user from enabling invalid extension through direct URL
PHPBB3-12009
Diffstat (limited to 'tests/functional/extension_acp_test.php')
-rw-r--r--tests/functional/extension_acp_test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php
index 35735659b2..53f62c4f19 100644
--- a/tests/functional/extension_acp_test.php
+++ b/tests/functional/extension_acp_test.php
@@ -219,5 +219,9 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
$form = $crawler->selectButton('delete_data')->form();
$crawler = self::submit($form);
$this->assertContainsLang('EXTENSION_DELETE_DATA_SUCCESS', $crawler->filter('.successbox')->text());
+
+ // Attempt to enable invalid extension
+ $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=enable_pre&ext_name=barfoo&sid=' . $this->sid);
+ $this->assertContainsLang('EXTENSION_DIR_INVALID', $crawler->filter('.errorbox')->text());
}
}