mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-16 14:39:37 +00:00
Ran rector and made tests final
This commit is contained in:
parent
43d72faf48
commit
b21d294cf8
162 changed files with 407 additions and 393 deletions
|
|
@ -30,7 +30,7 @@ use App\Services\UserSystem\PermissionManager;
|
|||
use InvalidArgumentException;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class PermissionManagerTest extends WebTestCase
|
||||
final class PermissionManagerTest extends WebTestCase
|
||||
{
|
||||
protected ?User $user_withoutGroup = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class TestPermissionHolder implements HasPermissionsInterface
|
|||
}
|
||||
}
|
||||
|
||||
class PermissionSchemaUpdaterTest extends WebTestCase
|
||||
final class PermissionSchemaUpdaterTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
* @var PermissionSchemaUpdater
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use App\Services\UserSystem\TFA\BackupCodeGenerator;
|
|||
use PHPUnit\Framework\TestCase;
|
||||
use RuntimeException;
|
||||
|
||||
class BackupCodeGeneratorTest extends TestCase
|
||||
final class BackupCodeGeneratorTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test if an exception is thrown if you are using a too high code length.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ use App\Entity\UserSystem\User;
|
|||
use App\Services\UserSystem\TFA\BackupCodeManager;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class BackupCodeManagerTest extends WebTestCase
|
||||
final class BackupCodeManagerTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
* @var BackupCodeManager
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ use Symfony\Component\Security\Core\Authentication\Token\NullToken;
|
|||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||
use Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken;
|
||||
|
||||
class VoterHelperTest extends KernelTestCase
|
||||
final class VoterHelperTest extends KernelTestCase
|
||||
{
|
||||
|
||||
protected ?VoterHelper $service = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue