Skip to content

Commit

Permalink
Fix transiant tests in 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Nov 1, 2020
1 parent 44d7fe4 commit bc0389c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Tests/Authentication/SimpleAuthenticationHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace Symfony\Component\Security\Http\Tests;
namespace Symfony\Component\Security\Http\Tests\Authentication;

use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\Response;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function testOnAuthenticationSuccessCallsSimpleAuthenticator()
$this->successHandler->expects($this->never())
->method('onAuthenticationSuccess');

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationSuccess')
->with($this->request, $this->token)
Expand All @@ -88,7 +88,7 @@ public function testOnAuthenticationSuccessThrowsAnExceptionIfNonResponseIsRetur
$this->successHandler->expects($this->never())
->method('onAuthenticationSuccess');

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationSuccess')
->with($this->request, $this->token)
Expand All @@ -105,7 +105,7 @@ public function testOnAuthenticationSuccessFallsBackToDefaultHandlerIfNullIsRetu
->with($this->request, $this->token)
->willReturn($this->response);

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestSuccessHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestSuccessHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationSuccess')
->with($this->request, $this->token)
Expand Down Expand Up @@ -137,7 +137,7 @@ public function testOnAuthenticationFailureCallsSimpleAuthenticator()
$this->failureHandler->expects($this->never())
->method('onAuthenticationFailure');

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationFailure')
->with($this->request, $this->authenticationException)
Expand All @@ -156,7 +156,7 @@ public function testOnAuthenticationFailureThrowsAnExceptionIfNonResponseIsRetur
$this->failureHandler->expects($this->never())
->method('onAuthenticationFailure');

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationFailure')
->with($this->request, $this->authenticationException)
Expand All @@ -173,7 +173,7 @@ public function testOnAuthenticationFailureFallsBackToDefaultHandlerIfNullIsRetu
->with($this->request, $this->authenticationException)
->willReturn($this->response);

$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\TestFailureHandlerInterface');
$authenticator = $this->getMockForAbstractClass('Symfony\Component\Security\Http\Tests\Authentication\TestFailureHandlerInterface');
$authenticator->expects($this->once())
->method('onAuthenticationFailure')
->with($this->request, $this->authenticationException)
Expand Down

0 comments on commit bc0389c

Please sign in to comment.