summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-François Simon <contact@jfsimon.fr>2013-03-15 16:24:21 +0100
committerJean-François Simon <contact@jfsimon.fr>2013-03-15 16:24:21 +0100
commitefd261ec28fd9acfc1e2dadd18fc91236b2fb236 (patch)
treecae774ffc9728e0fe2572d629c98af28d54f8d93
parent013f098cf1012f3a476b8c757a84b6fd996e45f2 (diff)
downloadsymfony-security-efd261ec28fd9acfc1e2dadd18fc91236b2fb236.zip
symfony-security-efd261ec28fd9acfc1e2dadd18fc91236b2fb236.tar.gz
symfony-security-efd261ec28fd9acfc1e2dadd18fc91236b2fb236.tar.bz2
[Security] fixed HttpUtils class tests
-rw-r--r--Tests/Http/HttpUtilsTest.php8
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')