aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/extension_controller_test.php
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-11-18 13:11:24 -0500
committerDavid King <imkingdavid@gmail.com>2012-11-18 13:11:24 -0500
commit7a3d9ed85dfd7f32a938070fff854e56bf39738e (patch)
treefe68f442368e86d12e354f4f7896259e9b09baeb /tests/functional/extension_controller_test.php
parent4d6f6351dd0563b26105d15b98052d907f9c52ed (diff)
downloadforums-7a3d9ed85dfd7f32a938070fff854e56bf39738e.tar
forums-7a3d9ed85dfd7f32a938070fff854e56bf39738e.tar.gz
forums-7a3d9ed85dfd7f32a938070fff854e56bf39738e.tar.bz2
forums-7a3d9ed85dfd7f32a938070fff854e56bf39738e.tar.xz
forums-7a3d9ed85dfd7f32a938070fff854e56bf39738e.zip
[feature/controller] Fix functional tests to use query string for controllers
PHPBB3-10864
Diffstat (limited to 'tests/functional/extension_controller_test.php')
-rw-r--r--tests/functional/extension_controller_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php
index ba4a4e8ef0..482fe9dfd3 100644
--- a/tests/functional/extension_controller_test.php
+++ b/tests/functional/extension_controller_test.php
@@ -90,7 +90,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
public function test_foo_bar()
{
$this->phpbb_extension_manager->enable('foo/bar');
- $crawler = $this->request('GET', 'app.php/foo/bar');
+ $crawler = $this->request('GET', 'app.php?controller=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,7 +102,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
public function test_controller_with_template()
{
$this->phpbb_extension_manager->enable('foo/bar');
- $crawler = $this->request('GET', 'app.php/foo/template');
+ $crawler = $this->request('GET', 'app.php?controller=foo/template');
$this->assert_response_success();
$this->assertContains("I am a variable", $crawler->filter('#content')->text());
$this->phpbb_extension_manager->purge('foo/bar');
@@ -115,7 +115,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c
public function test_missing_argument()
{
$this->phpbb_extension_manager->enable('foo/bar');
- $crawler = $this->request('GET', 'app.php/foo/baz');
+ $crawler = $this->request('GET', 'app.php?controller=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');
@@ -132,7 +132,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');
+ $crawler = $this->request('GET', 'app.php?controller=does/not/exist');
$this->assertEquals(404, $this->client->getResponse()->getStatus());
$this->assertContains('No route found for "GET /does/not/exist"', $crawler->filter('body')->text());
}