diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2013-03-19 21:41:20 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2013-03-19 21:41:20 +0100 |
commit | d6e78258d9049f137549718524585e8822b06d95 (patch) | |
tree | 4095289d9d0656e803061d4b3669fab37df11260 /Tests/Http | |
parent | 580e714d0973bce6410d7351c19ddd781497b1e5 (diff) | |
parent | 23c8abd9f9c296633ec0b146cbae815dff66664b (diff) | |
download | symfony-security-d6e78258d9049f137549718524585e8822b06d95.zip symfony-security-d6e78258d9049f137549718524585e8822b06d95.tar.gz symfony-security-d6e78258d9049f137549718524585e8822b06d95.tar.bz2 |
Merge branch '2.1' into 2.2
* 2.1:
Add a public modifier to an interface method
[HttpRequest] fixes Request::getLanguages() bug
[HttpCache] added a test (cached content should be kept after purging)
[DoctrineBridge] Fixed non-utf-8 recognition
[Security] fixed HttpUtils class tests
Diffstat (limited to 'Tests/Http')
-rw-r--r-- | Tests/Http/HttpUtilsTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/Http/HttpUtilsTest.php b/Tests/Http/HttpUtilsTest.php index 8a2d2f0..bf078da 100644 --- a/Tests/Http/HttpUtilsTest.php +++ b/Tests/Http/HttpUtilsTest.php @@ -137,16 +137,16 @@ class HttpUtilsTest extends \PHPUnit_Framework_TestCase $utils->checkRequestPath($this->getRequest(), 'foobar'); } - public function testGenerateUrlRemovesQueryString() + public function testGenerateUriRemovesQueryString() { - $method = new \ReflectionMethod('Symfony\Component\Security\Http\HttpUtils', 'generateUrl'); + $method = new \ReflectionMethod('Symfony\Component\Security\Http\HttpUtils', 'generateUri'); $method->setAccessible(true); $utils = new HttpUtils($this->getUrlGenerator()); - $this->assertEquals('/foo/bar', $method->invoke($utils, 'route_name')); + $this->assertEquals('/foo/bar', $method->invoke($utils, new Request(), 'route_name')); $utils = new HttpUtils($this->getUrlGenerator('/foo/bar?param=value')); - $this->assertEquals('/foo/bar', $method->invoke($utils, 'route_name')); + $this->assertEquals('/foo/bar', $method->invoke($utils, new Request(), 'route_name')); } private function getUrlGenerator($generatedUrl = '/foo/bar') |