diff options
| author | David King <imkingdavid@gmail.com> | 2012-11-19 12:37:20 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-11-19 12:37:20 -0500 |
| commit | f8614bfc84ba9b9cc814b8f78e343005620f18f8 (patch) | |
| tree | 2bc656eecad6052aa04134c4506ab10876d6fe63 /tests/functional/fixtures/ext/foo | |
| parent | 30043502814cd42d824dc1d6bcb25bebc60adbed (diff) | |
| download | forums-f8614bfc84ba9b9cc814b8f78e343005620f18f8.tar forums-f8614bfc84ba9b9cc814b8f78e343005620f18f8.tar.gz forums-f8614bfc84ba9b9cc814b8f78e343005620f18f8.tar.bz2 forums-f8614bfc84ba9b9cc814b8f78e343005620f18f8.tar.xz forums-f8614bfc84ba9b9cc814b8f78e343005620f18f8.zip | |
[feature/controller] Check for proper status codes from controllers
PHPBB3-10864
Diffstat (limited to 'tests/functional/fixtures/ext/foo')
| -rw-r--r-- | tests/functional/fixtures/ext/foo/bar/config/routing.yml | 4 | ||||
| -rw-r--r-- | tests/functional/fixtures/ext/foo/bar/controller/controller.php | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/fixtures/ext/foo/bar/config/routing.yml b/tests/functional/fixtures/ext/foo/bar/config/routing.yml index 123f5f1b73..7eb604f746 100644 --- a/tests/functional/fixtures/ext/foo/bar/config/routing.yml +++ b/tests/functional/fixtures/ext/foo/bar/config/routing.yml @@ -9,3 +9,7 @@ foo_baz_controller: foo_template_controller: pattern: /foo/template defaults: { _controller: foo_bar.controller:template } + +foo_exception_controller: + pattern: /foo/foo_exception + defaults: { _controller: foo_bar.controller:exception } diff --git a/tests/functional/fixtures/ext/foo/bar/controller/controller.php b/tests/functional/fixtures/ext/foo/bar/controller/controller.php index 50ea5d034b..5a91b5f681 100644 --- a/tests/functional/fixtures/ext/foo/bar/controller/controller.php +++ b/tests/functional/fixtures/ext/foo/bar/controller/controller.php @@ -27,4 +27,9 @@ class phpbb_ext_foo_bar_controller return $this->helper->render('foo_bar_body.html'); } + + public function exception() + { + throw new phpbb_controller_exception('Exception thrown from foo/exception route'); + } } |
