replace PHPUnit annotations with attributes (#5608)
This commit is contained in:
@@ -11,11 +11,10 @@ namespace App\Tests\Saml;
|
||||
|
||||
use App\Saml\SamlBadge;
|
||||
use App\Saml\SamlLoginAttributes;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Saml\SamlBadge
|
||||
*/
|
||||
#[CoversClass(SamlBadge::class)]
|
||||
class SamlBadgeTest extends TestCase
|
||||
{
|
||||
public function testConstruct(): void
|
||||
|
||||
@@ -15,14 +15,13 @@ use App\Saml\SamlLogoutSubscriber;
|
||||
use App\Saml\SamlToken;
|
||||
use OneLogin\Saml2\Auth;
|
||||
use OneLogin\Saml2\Error;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||
use Symfony\Component\Security\Http\Event\LogoutEvent;
|
||||
|
||||
/**
|
||||
* @covers \App\Saml\SamlLogoutSubscriber
|
||||
*/
|
||||
#[CoversClass(SamlLogoutSubscriber::class)]
|
||||
class SamlLogoutSubscriberTest extends TestCase
|
||||
{
|
||||
public function testLogout(): void
|
||||
|
||||
@@ -16,14 +16,13 @@ use App\Saml\SamlProvider;
|
||||
use App\Tests\Configuration\TestConfigLoader;
|
||||
use App\Tests\Mocks\SystemConfigurationFactory;
|
||||
use App\User\UserService;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\Security\Core\Exception\AuthenticationException;
|
||||
use Symfony\Component\Security\Core\User\UserProviderInterface;
|
||||
|
||||
/**
|
||||
* @covers \App\Saml\SamlProvider
|
||||
*/
|
||||
#[CoversClass(SamlProvider::class)]
|
||||
class SamlProviderTest extends TestCase
|
||||
{
|
||||
protected function getSamlProvider(array $mapping = null, ?User $user = null): SamlProvider
|
||||
|
||||
@@ -11,11 +11,10 @@ namespace App\Tests\Saml;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Saml\SamlToken;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers \App\Saml\SamlToken
|
||||
*/
|
||||
#[CoversClass(SamlToken::class)]
|
||||
class SamlTokenTest extends TestCase
|
||||
{
|
||||
public function testConstruct(): void
|
||||
|
||||
@@ -12,15 +12,14 @@ namespace App\Tests\Saml\Security;
|
||||
use App\Entity\User;
|
||||
use App\Saml\SamlToken;
|
||||
use App\Saml\Security\SamlAuthenticationSuccessHandler;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
use Symfony\Component\Security\Http\HttpUtils;
|
||||
|
||||
/**
|
||||
* @covers \App\Saml\Security\SamlAuthenticationSuccessHandler
|
||||
*/
|
||||
#[CoversClass(SamlAuthenticationSuccessHandler::class)]
|
||||
class SamlAuthenticationSuccessHandlerTest extends TestCase
|
||||
{
|
||||
public function testRelayState(): void
|
||||
|
||||
Reference in New Issue
Block a user