diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-07-13 15:44:58 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-07-13 18:09:34 +0200 |
commit | 519e64205a50b15efa8589901c87f5b21448993a (patch) | |
tree | 82ab03bbf7315f42857d45badd32b00a636c8c49 /tests/functional/extension_acp_test.php | |
parent | dd78b564e56152be559b4ec476e35698fa32e1bf (diff) | |
download | forums-519e64205a50b15efa8589901c87f5b21448993a.tar forums-519e64205a50b15efa8589901c87f5b21448993a.tar.gz forums-519e64205a50b15efa8589901c87f5b21448993a.tar.bz2 forums-519e64205a50b15efa8589901c87f5b21448993a.tar.xz forums-519e64205a50b15efa8589901c87f5b21448993a.zip |
[ticket/12847] Allow the extensions to say if they can be enabled
PHPBB3-12847
Diffstat (limited to 'tests/functional/extension_acp_test.php')
-rw-r--r-- | tests/functional/extension_acp_test.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index b6dd5db708..6490c1ead3 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -84,7 +84,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&sid=' . $this->sid); $this->assertCount(1, $crawler->filter('.ext_enabled')); - $this->assertCount(4, $crawler->filter('.ext_disabled')); + $this->assertCount(5, $crawler->filter('.ext_disabled')); $this->assertContains('phpBB Foo Extension', $crawler->filter('.ext_enabled')->eq(0)->text()); $this->assertContainsLang('EXTENSION_DISABLE', $crawler->filter('.ext_enabled')->eq(0)->text()); @@ -162,6 +162,10 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=enable_pre&ext_name=vendor%2Fmoo&sid=' . $this->sid); $this->assertContains($this->lang('EXTENSION_ENABLE_CONFIRM', 'phpBB Moo Extension'), $crawler->filter('#main')->text()); + + // Correctly submit the enable form + $crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=enable_pre&ext_name=vendor3%2Ffoo&sid=' . $this->sid); + $this->assertContainsLang('EXTENSION_NOT_ENABLEABLE', $crawler->filter('.errorbox')->text()); } public function test_disable_pre() |