diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-03-21 15:27:15 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-08 08:47:23 +0200 |
commit | 0de153d9034720745eb3589b95953de9a185360d (patch) | |
tree | 54afdccfb2775e40e79910d7e8ec65bc614f83b7 /tests/functional/metadata_manager_test.php | |
parent | 269c2ce98de5b55a713e998aacdaa5500d32b617 (diff) | |
download | forums-0de153d9034720745eb3589b95953de9a185360d.tar forums-0de153d9034720745eb3589b95953de9a185360d.tar.gz forums-0de153d9034720745eb3589b95953de9a185360d.tar.bz2 forums-0de153d9034720745eb3589b95953de9a185360d.tar.xz forums-0de153d9034720745eb3589b95953de9a185360d.zip |
[ticket/11450] Add test for unexisting composer.json
PHPBB3-11450
Diffstat (limited to 'tests/functional/metadata_manager_test.php')
-rw-r--r-- | tests/functional/metadata_manager_test.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/functional/metadata_manager_test.php b/tests/functional/metadata_manager_test.php index 0f5b49f01e..deb8af7707 100644 --- a/tests/functional/metadata_manager_test.php +++ b/tests/functional/metadata_manager_test.php @@ -88,7 +88,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case $this->assertContains('Details', $this->client->getResponse()->getContent()); } - public function test_permissions_tab() + public function test_extensions_details() { $crawler = $this->request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=foo%2Fbar&sid=' . $this->sid); $this->assert_response_success(); @@ -101,4 +101,13 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case $this->assertContains($this->lang('PHP_VERSION'), $this->client->getResponse()->getContent()); $this->assertContains('>=5.3', $this->client->getResponse()->getContent()); } + + public function test_extensions_details_notexists() + { + $crawler = $this->request('GET', 'adm/index.php?i=acp_extensions&mode=main&action=details&ext_name=not%2Fexists&sid=' . $this->sid); + $this->assert_response_success(); + + // Error message because the files do not exist + $this->assertContains('The required file does not exist:', $this->client->getResponse()->getContent()); + } } |