diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-08-23 13:16:41 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-08-24 15:17:50 +0200 |
commit | 0386b1788a56ef36c435796c74924d35331a1779 (patch) | |
tree | 99a7b464099e189779473d7a85eae88f3812d89f /tests/functional/extension_controller_test.php | |
parent | 03b9eb5dcb0a12b24aedcf7140e8bf068c427df5 (diff) | |
download | forums-0386b1788a56ef36c435796c74924d35331a1779.tar forums-0386b1788a56ef36c435796c74924d35331a1779.tar.gz forums-0386b1788a56ef36c435796c74924d35331a1779.tar.bz2 forums-0386b1788a56ef36c435796c74924d35331a1779.tar.xz forums-0386b1788a56ef36c435796c74924d35331a1779.zip |
[ticket/13008] Add functionnal test
PHPBB3-13008
Diffstat (limited to 'tests/functional/extension_controller_test.php')
-rw-r--r-- | tests/functional/extension_controller_test.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index 532a160a47..18eb9ad4c6 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -26,6 +26,8 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c 'foo/bar/event/', 'foo/bar/language/en/', 'foo/bar/styles/prosilver/template/', + 'foo/foo/config/', + 'foo/foo/controller/', ); static public function setUpBeforeClass() @@ -65,6 +67,18 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c } /** + * Check a controller for extension foo/bar. + */ + public function test_routing_resources() + { + $this->phpbb_extension_manager->enable('foo/foo'); + $crawler = self::request('GET', 'app.php/foo/foo', array(), false); + self::assert_response_status_code(); + $this->assertContains("foo/foo controller handle() method", $crawler->filter('body')->text()); + $this->phpbb_extension_manager->purge('foo/foo'); + } + + /** * Check the output of a controller using the template system */ public function test_controller_with_template() |