diff options
author | David King <imkingdavid@gmail.com> | 2012-11-16 17:36:39 -0500 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2012-11-16 17:36:39 -0500 |
commit | 4efbb893b7b8ada8766847dc59724faef9c18142 (patch) | |
tree | 9d9a9823f5a48ac5f302fd7c96f85d9c0a1fbc43 /tests/functional/extension_controller_test.php | |
parent | abf2575bdbad84ca2d139290789852ee51efd31c (diff) | |
download | forums-4efbb893b7b8ada8766847dc59724faef9c18142.tar forums-4efbb893b7b8ada8766847dc59724faef9c18142.tar.gz forums-4efbb893b7b8ada8766847dc59724faef9c18142.tar.bz2 forums-4efbb893b7b8ada8766847dc59724faef9c18142.tar.xz forums-4efbb893b7b8ada8766847dc59724faef9c18142.zip |
[feature/controller] Fix line endings and permissions, and check responses
PHPBB3-10864
Diffstat (limited to 'tests/functional/extension_controller_test.php')
-rw-r--r-- | tests/functional/extension_controller_test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index 9cc2e0e32f..ba4a4e8ef0 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -91,6 +91,7 @@ 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->assert_response_success(); $this->assertContains("foo/bar controller handle() method", $crawler->filter('body')->text()); $this->phpbb_extension_manager->purge('foo/bar'); } @@ -102,6 +103,7 @@ 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/template'); + $this->assert_response_success(); $this->assertContains("I am a variable", $crawler->filter('#content')->text()); $this->phpbb_extension_manager->purge('foo/bar'); } @@ -114,6 +116,7 @@ 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/baz'); + $this->assertEquals(404, $this->client->getResponse()->getStatus()); $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'); } @@ -130,6 +133,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c public function test_error_ext_disabled_or_404() { $crawler = $this->request('GET', 'app.php/does/not/exist'); + $this->assertEquals(404, $this->client->getResponse()->getStatus()); $this->assertContains('No route found for "GET /does/not/exist"', $crawler->filter('body')->text()); } } |