Skip to content

Commit c6a886e

Browse files
Remove deprecated code paths
1 parent 446a162 commit c6a886e

File tree

7 files changed

+0
-18
lines changed

7 files changed

+0
-18
lines changed

Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Security\Core\Tests\Authentication\Token;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
1716
use Symfony\Component\Security\Core\User\InMemoryUser;
1817
use Symfony\Component\Security\Core\User\UserInterface;
1918

2019
class AbstractTokenTest extends TestCase
2120
{
22-
use ExpectDeprecationTrait;
23-
2421
/**
2522
* @dataProvider provideUsers
2623
*/

Tests/Authentication/Token/SwitchUserTokenTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function testSerializeNullImpersonateUrl()
6868
* )
6969
* )
7070
* )
71-
*
72-
* @group legacy
7371
*/
7472
public function testUnserializeOldToken()
7573
{

Tests/Authorization/AccessDecisionManagerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Security\Core\Tests\Authorization;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
1716
use Symfony\Component\Security\Core\Authorization\AccessDecisionManager;
1817
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
1918

2019
class AccessDecisionManagerTest extends TestCase
2120
{
22-
use ExpectDeprecationTrait;
23-
2421
public function testSetUnsupportedStrategy()
2522
{
2623
$this->expectException(\InvalidArgumentException::class);

Tests/Authorization/Voter/RoleVoterTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Security\Core\Tests\Authorization\Voter;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Security\Core\Authentication\Token\AbstractToken;
1716
use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter;
1817
use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
1918

2019
class RoleVoterTest extends TestCase
2120
{
22-
use ExpectDeprecationTrait;
23-
2421
/**
2522
* @dataProvider getVoteTests
2623
*/

Tests/User/InMemoryUserProviderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
namespace Symfony\Component\Security\Core\Tests\User;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Security\Core\Exception\UserNotFoundException;
1716
use Symfony\Component\Security\Core\User\InMemoryUser;
1817
use Symfony\Component\Security\Core\User\InMemoryUserProvider;
1918

2019
class InMemoryUserProviderTest extends TestCase
2120
{
22-
use ExpectDeprecationTrait;
23-
2421
public function testConstructor()
2522
{
2623
$provider = $this->createProvider();

Tests/User/InMemoryUserTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
namespace Symfony\Component\Security\Core\Tests\User;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1615
use Symfony\Component\Security\Core\User\InMemoryUser;
1716
use Symfony\Component\Security\Core\User\UserInterface;
1817

1918
class InMemoryUserTest extends TestCase
2019
{
21-
use ExpectDeprecationTrait;
22-
2320
public function testConstructorException()
2421
{
2522
$this->expectException(\InvalidArgumentException::class);

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"php": ">=8.0.2",
2020
"symfony/event-dispatcher-contracts": "^1.1|^2.0|^3.0",
2121
"symfony/service-contracts": "^1.1.6|^2.0|^3.0",
22-
"symfony/deprecation-contracts": "^2.1|^3.0",
2322
"symfony/password-hasher": "^5.4|^6.0"
2423
},
2524
"require-dev": {

0 commit comments

Comments
 (0)