Improved code style of tests

This commit is contained in:
Jan Böhmer 2023-06-11 15:02:59 +02:00
parent 5629215ce4
commit 684334ba22
73 changed files with 196 additions and 38 deletions

View file

@ -27,6 +27,9 @@ use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
use Symfony\Component\Security\Core\Exception\CustomUserMessageAccountStatusException;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* @see \App\Tests\Security\EnsureSAMLUserForSAMLLoginCheckerTest
*/
class EnsureSAMLUserForSAMLLoginChecker implements EventSubscriberInterface
{
public function __construct(private readonly TranslatorInterface $translator)

View file

@ -29,6 +29,9 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\Event\AuthenticationSuccessEvent;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* @see \App\Tests\Security\SamlUserFactoryTest
*/
class SamlUserFactory implements SamlUserFactoryInterface, EventSubscriberInterface
{
private readonly array $saml_role_mapping;

View file

@ -29,6 +29,9 @@ use Symfony\Component\Security\Core\User\UserCheckerInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* @see \App\Tests\Security\UserCheckerTest
*/
final class UserChecker implements UserCheckerInterface
{
public function __construct(private readonly TranslatorInterface $translator)