Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 2eb5447

Browse files
committed
Fix Serializable deprecations triggered by token mocks
1 parent 309a441 commit 2eb5447

File tree

43 files changed

+85
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+85
-39
lines changed

Core/Tests/Authentication/AuthenticationProviderManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1616
use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager;
1717
use Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface;
18-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1918
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
2019
use Symfony\Component\Security\Core\AuthenticationEvents;
2120
use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent;
2221
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
2322
use Symfony\Component\Security\Core\Exception\AccountStatusException;
2423
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2524
use Symfony\Component\Security\Core\Exception\ProviderNotFoundException;
25+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2626

2727
class AuthenticationProviderManagerTest extends TestCase
2828
{

Core/Tests/Authentication/AuthenticationTrustResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver;
1616
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
1717
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
18-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
18+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
1919

2020
class AuthenticationTrustResolverTest extends TestCase
2121
{

Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider;
1616
use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
17-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1918
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
19+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2020

2121
class AnonymousAuthenticationProviderTest extends TestCase
2222
{

Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Authentication\Provider\PreAuthenticatedAuthenticationProvider;
16-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1716
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1817
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
1918
use Symfony\Component\Security\Core\Exception\LockedException;
19+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2020
use Symfony\Component\Security\Core\User\UserCheckerInterface;
2121
use Symfony\Component\Security\Core\User\UserInterface;
2222
use Symfony\Component\Security\Core\User\UserProviderInterface;

Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider;
1616
use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken;
17-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Exception\AuthenticationException;
1918
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
2019
use Symfony\Component\Security\Core\Exception\DisabledException;
2120
use Symfony\Component\Security\Core\Exception\LogicException;
21+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2222
use Symfony\Component\Security\Core\User\User;
2323
use Symfony\Component\Security\Core\User\UserCheckerInterface;
2424
use Symfony\Component\Security\Core\User\UserInterface;

Core/Tests/Authentication/Provider/SimpleAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Authentication\Provider\SimpleAuthenticationProvider;
1616
use Symfony\Component\Security\Core\Authentication\SimpleAuthenticatorInterface;
17-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Exception\DisabledException;
1918
use Symfony\Component\Security\Core\Exception\LockedException;
19+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2020
use Symfony\Component\Security\Core\User\UserChecker;
2121
use Symfony\Component\Security\Core\User\UserCheckerInterface;
2222
use Symfony\Component\Security\Core\User\UserInterface;

Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider;
1616
use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken;
17-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1817
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
1918
use Symfony\Component\Security\Core\Exception\AccountExpiredException;
2019
use Symfony\Component\Security\Core\Exception\AuthenticationException;
@@ -23,6 +22,7 @@
2322
use Symfony\Component\Security\Core\Exception\CredentialsExpiredException;
2423
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
2524
use Symfony\Component\Security\Core\Role\SwitchUserRole;
25+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2626
use Symfony\Component\Security\Core\User\UserCheckerInterface;
2727
use Symfony\Component\Security\Core\User\UserInterface;
2828

Core/Tests/Authentication/Token/Storage/UsageTrackingTokenStorageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\HttpFoundation\Session\SessionInterface;
1717
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage;
1818
use Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage;
19-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
19+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2020
use Symfony\Contracts\Service\ServiceLocatorTrait;
2121

2222
class UsageTrackingTokenStorageTest extends TestCase

Core/Tests/Authorization/AccessDecisionManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Component\Security\Core\Tests\Authorization;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1615
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
1716
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
17+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
1818

1919
class AccessDecisionManagerTest extends TestCase
2020
{

Core/Tests/Authorization/TraceableAccessDecisionManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Security\Core\Tests\Authorization;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1615
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
1716
use Symfony\Component\Security\Core\Authorization\DebugAccessDecisionManager;
1817
use Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager;
1918
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
19+
use Symfony\Component\Security\Core\Tests\Fixtures\TokenInterface;
2020

2121
class TraceableAccessDecisionManagerTest extends TestCase
2222
{

0 commit comments

Comments
 (0)