summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Authentication/AuthenticationTrustResolverTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2016-12-19 17:13:57 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2016-12-19 17:13:57 +0100
commit9ba5cbed388bbf235d6ba2e2211134ff5514960f (patch)
tree669494c864e907ed8c1f286dd049c11739b93472 /Core/Tests/Authentication/AuthenticationTrustResolverTest.php
parent3b5625de42114cd121282bdfc4879a28e85d64ec (diff)
parent7a9b11f3428243d368690b9485098e2d531703e7 (diff)
downloadsymfony-security-9ba5cbed388bbf235d6ba2e2211134ff5514960f.zip
symfony-security-9ba5cbed388bbf235d6ba2e2211134ff5514960f.tar.gz
symfony-security-9ba5cbed388bbf235d6ba2e2211134ff5514960f.tar.bz2
Merge branch '3.2'
* 3.2: fixed obsolete getMock() usage fixed obsolete getMock() usage fixed obsolete getMock() usage fixed obsolete getMock() usage [WebProfilerBundle] Display multiple HTTP headers in WDT do not remove the Twig ExceptionController service removed obsolete condition do not try to register incomplete definitions
Diffstat (limited to 'Core/Tests/Authentication/AuthenticationTrustResolverTest.php')
-rw-r--r--Core/Tests/Authentication/AuthenticationTrustResolverTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Core/Tests/Authentication/AuthenticationTrustResolverTest.php b/Core/Tests/Authentication/AuthenticationTrustResolverTest.php
index 3640981..e3f7f5f 100644
--- a/Core/Tests/Authentication/AuthenticationTrustResolverTest.php
+++ b/Core/Tests/Authentication/AuthenticationTrustResolverTest.php
@@ -47,17 +47,17 @@ class AuthenticationTrustResolverTest extends \PHPUnit_Framework_TestCase
protected function getToken()
{
- return $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
+ return $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock();
}
protected function getAnonymousToken()
{
- return $this->getMock('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken', null, array('', ''));
+ return $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\AnonymousToken')->setConstructorArgs(array('', ''))->getMock();
}
protected function getRememberMeToken()
{
- return $this->getMock('Symfony\Component\Security\Core\Authentication\Token\RememberMeToken', array('setPersistent'), array(), '', false);
+ return $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\RememberMeToken')->setMethods(array('setPersistent'))->disableOriginalConstructor()->getMock();
}
protected function getResolver()