diff options
| author | David King <imkingdavid@gmail.com> | 2012-11-16 10:30:50 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2012-11-16 17:05:57 -0500 |
| commit | 0c75d3d7da9c5fd7ee1560597db684c9d1704c22 (patch) | |
| tree | b7d279dee2e0edc9285decd1fbfefcf451bb027e /tests/functional/extension_controller_test.php | |
| parent | 230897723c9e5fc5534d9781b04ffd8dac70d51b (diff) | |
| download | forums-0c75d3d7da9c5fd7ee1560597db684c9d1704c22.tar forums-0c75d3d7da9c5fd7ee1560597db684c9d1704c22.tar.gz forums-0c75d3d7da9c5fd7ee1560597db684c9d1704c22.tar.bz2 forums-0c75d3d7da9c5fd7ee1560597db684c9d1704c22.tar.xz forums-0c75d3d7da9c5fd7ee1560597db684c9d1704c22.zip | |
[feature/controller] Add test for missing argument in controller class
PHPBB3-10864
Diffstat (limited to 'tests/functional/extension_controller_test.php')
| -rw-r--r-- | tests/functional/extension_controller_test.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index 2f07c8a70f..b1e910aeac 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -91,7 +91,15 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c $this->phpbb_extension_manager->enable('foo/bar'); $crawler = $this->request('GET', 'app.php/foo/bar'); $this->assertContains("foo/bar controller handle() method", $crawler->filter('body')->text()); - $this->phpbb_extension_manager->purge('foobar'); + $this->phpbb_extension_manager->purge('foo/bar'); + } + + public function test_missing_argument() + { + $this->phpbb_extension_manager->enable('foo/bar'); + $crawler = $this->request('GET', 'app.php/foo/baz'); + $this->assertContains('Missing value for argument #1: test in class phpbb_ext_foo_bar_controller:baz', $crawler->filter('body')->text()); + $this->phpbb_extension_manager->purge('foo/bar'); } /** |
