summaryrefslogtreecommitdiffstats
path: root/Http/Tests/HttpUtilsTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-10-18 22:23:18 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-10-18 22:23:18 +0200
commitec02cc7427caf4067eab3c86f1659215f9f8440e (patch)
tree6ab8f64edb7e735fd502f8d2c0373848017f78c6 /Http/Tests/HttpUtilsTest.php
parentf4a3959fc209d020abcf5c4d774ee309589bd047 (diff)
parent1c44760b4c6c7d83b21e68e2843d77d6d98be451 (diff)
downloadsymfony-security-ec02cc7427caf4067eab3c86f1659215f9f8440e.zip
symfony-security-ec02cc7427caf4067eab3c86f1659215f9f8440e.tar.gz
symfony-security-ec02cc7427caf4067eab3c86f1659215f9f8440e.tar.bz2
Merge branch '2.3' into 2.7v2.7.6
* 2.3: [Routing] use constants in tests [Validator] Allow an empty path in a URL with only a fragment or a query [HttpFoundation] Fix some typo in the Request doc fixed CS Added separated handling of root paths
Diffstat (limited to 'Http/Tests/HttpUtilsTest.php')
-rw-r--r--Http/Tests/HttpUtilsTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Http/Tests/HttpUtilsTest.php b/Http/Tests/HttpUtilsTest.php
index 195fc48..45a0281 100644
--- a/Http/Tests/HttpUtilsTest.php
+++ b/Http/Tests/HttpUtilsTest.php
@@ -15,6 +15,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Security\Core\Security;
+use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Security\Http\HttpUtils;
class HttpUtilsTest extends \PHPUnit_Framework_TestCase
@@ -43,7 +44,7 @@ class HttpUtilsTest extends \PHPUnit_Framework_TestCase
$urlGenerator
->expects($this->any())
->method('generate')
- ->with('foobar', array(), true)
+ ->with('foobar', array(), UrlGeneratorInterface::ABSOLUTE_URL)
->will($this->returnValue('http://localhost/foo/bar'))
;
$urlGenerator