aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2012-11-13 09:48:12 -0500
committerDavid King <imkingdavid@gmail.com>2012-11-16 16:47:26 -0500
commit79bcbd3691a91e213a860dbcd1b11330752bd076 (patch)
tree0c0c44b618366ca36170e41971d4a58f92b937ce
parentac29c7e9d982648ed64e0ef73bbebd67567c2d89 (diff)
downloadforums-79bcbd3691a91e213a860dbcd1b11330752bd076.tar
forums-79bcbd3691a91e213a860dbcd1b11330752bd076.tar.gz
forums-79bcbd3691a91e213a860dbcd1b11330752bd076.tar.bz2
forums-79bcbd3691a91e213a860dbcd1b11330752bd076.tar.xz
forums-79bcbd3691a91e213a860dbcd1b11330752bd076.zip
[feature/controller] Add _controller attribute to Request after instantiation
PHPBB3-10864
-rw-r--r--tests/controller/controller_test.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/controller/controller_test.php b/tests/controller/controller_test.php
index 38f58c80a0..b73019a6a0 100644
--- a/tests/controller/controller_test.php
+++ b/tests/controller/controller_test.php
@@ -64,11 +64,13 @@ class phpbb_controller_test extends phpbb_test_case
}
$resolver = new phpbb_controller_resolver(new phpbb_user, $container);
- $symfony_request = new Request(array(), array(), array('_controller' => 'foo.controller:handle'));
+ $symfony_request = new Request();
+ $symfony_request->attributes->set('_controller', 'foo.controller:handle');
$this->assertEquals($resolver->getController($symfony_request), array(new phpbb_ext_foo_controller, 'handle'));
- $symfony_request = new Request(array(), array(), array('_controller' => 'core_foo.controller:bar'));
+ $symfony_request = new Request();
+ $symfony_request->attributes->set('_controller', 'core_foo.controller:bar');
$this->assertEquals($resolver->getController($symfony_request), array(new phpbb_controller_foo, 'bar'));
}