aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-12 13:00:27 -0800
committerCesar G <prototech91@gmail.com>2013-12-12 13:03:04 -0800
commit2735982c551d6537bd49fda265c82fdd3471fa36 (patch)
tree486db0edf9565b0023c69ab6c5e04acbb8808236
parent495ded59f3fc6a3c905700caa2f9fd9c613b3380 (diff)
downloadforums-2735982c551d6537bd49fda265c82fdd3471fa36.tar
forums-2735982c551d6537bd49fda265c82fdd3471fa36.tar.gz
forums-2735982c551d6537bd49fda265c82fdd3471fa36.tar.bz2
forums-2735982c551d6537bd49fda265c82fdd3471fa36.tar.xz
forums-2735982c551d6537bd49fda265c82fdd3471fa36.zip
[ticket/12009] Update functional test to check for invalid extensions.
PHPBB3-12009
-rw-r--r--tests/functional/extension_acp_test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php
index 95eb45a73d..35735659b2 100644
--- a/tests/functional/extension_acp_test.php
+++ b/tests/functional/extension_acp_test.php
@@ -97,6 +97,12 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
$this->assertContains('phpBB Bar Extension', $crawler->filter('.ext_disabled')->eq(3)->text());
$this->assertContainsLang('DETAILS', $crawler->filter('.ext_disabled')->eq(3)->text());
$this->assertContainsLang('EXTENSION_ENABLE', $crawler->filter('.ext_disabled')->eq(3)->text());
+
+ // Check that invalid extensions are not listed.
+ $this->assertNotContains('phpBB BarFoo Extension', $crawler->filter('.table1')->text());
+ $this->assertNotContains('barfoo', $crawler->filter('.table1')->text());
+
+ $this->assertNotContains('vendor3/bar', $crawler->filter('.table1')->text());
}
public function test_details()