diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2016-12-19 17:13:57 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2016-12-19 17:13:57 +0100 |
commit | 9ba5cbed388bbf235d6ba2e2211134ff5514960f (patch) | |
tree | 669494c864e907ed8c1f286dd049c11739b93472 /Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php | |
parent | 3b5625de42114cd121282bdfc4879a28e85d64ec (diff) | |
parent | 7a9b11f3428243d368690b9485098e2d531703e7 (diff) | |
download | symfony-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 'Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php')
-rw-r--r-- | Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php b/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php index 5372993..8b937c5 100644 --- a/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php +++ b/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php @@ -24,10 +24,10 @@ class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCas protected function setUp() { - $this->httpUtils = $this->getMock('Symfony\Component\Security\Http\HttpUtils'); - $this->request = $this->getMock('Symfony\Component\HttpFoundation\Request'); - $this->request->headers = $this->getMock('Symfony\Component\HttpFoundation\HeaderBag'); - $this->token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface'); + $this->httpUtils = $this->getMockBuilder('Symfony\Component\Security\Http\HttpUtils')->getMock(); + $this->request = $this->getMockBuilder('Symfony\Component\HttpFoundation\Request')->getMock(); + $this->request->headers = $this->getMockBuilder('Symfony\Component\HttpFoundation\HeaderBag')->getMock(); + $this->token = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock(); } public function testRequestIsRedirected() @@ -101,7 +101,7 @@ class DefaultAuthenticationSuccessHandlerTest extends \PHPUnit_Framework_TestCas public function testTargetPathIsTakenFromTheSession() { - $session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface'); + $session = $this->getMockBuilder('Symfony\Component\HttpFoundation\Session\SessionInterface')->getMock(); $session->expects($this->once()) ->method('get')->with('_security.admin.target_path') ->will($this->returnValue('/admin/dashboard')); |