diff options
author | Cesar G <prototech91@gmail.com> | 2013-12-12 13:00:27 -0800 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2013-12-12 13:03:04 -0800 |
commit | 2735982c551d6537bd49fda265c82fdd3471fa36 (patch) | |
tree | 486db0edf9565b0023c69ab6c5e04acbb8808236 /tests/functional/extension_acp_test.php | |
parent | 495ded59f3fc6a3c905700caa2f9fd9c613b3380 (diff) | |
download | forums-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
Diffstat (limited to 'tests/functional/extension_acp_test.php')
-rw-r--r-- | tests/functional/extension_acp_test.php | 6 |
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() |