summaryrefslogtreecommitdiffstats
path: root/Http/Tests/HttpUtilsTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-10-18 22:24:22 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2015-10-18 22:24:22 +0200
commitdfef828a55f3fd50ba06a45188ce7ae5a91b84f4 (patch)
treed2a748ee8a131676883476d77d66097f75f16b19 /Http/Tests/HttpUtilsTest.php
parentbcd6634e81903b837628e5b9a122eba2e8621fef (diff)
parent4786bbb2ac01bb89fc7aceb36bfe8cfe05dde675 (diff)
downloadsymfony-security-dfef828a55f3fd50ba06a45188ce7ae5a91b84f4.zip
symfony-security-dfef828a55f3fd50ba06a45188ce7ae5a91b84f4.tar.gz
symfony-security-dfef828a55f3fd50ba06a45188ce7ae5a91b84f4.tar.bz2
Merge branch '2.8'
* 2.8: [Routing] use constants in tests [Process] tweaked README [TwigBundle] Fix Twig cache is not properly warmed [Validator] Allow an empty path in a URL with only a fragment or a query [Security] Use SessionAuthenticationStrategy on RememberMe login [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