Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -13,7 +13,6 @@ use App\Entity\User;
use App\Security\UserChecker;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Exception\DisabledException;
use Symfony\Component\Security\Core\User\User as SymfonyUser;
/**
* @covers \App\Security\UserChecker
@@ -25,7 +24,7 @@ class UserCheckerTest extends TestCase
$sut = new UserChecker();
try {
$sut->checkPreAuth(new SymfonyUser('sdf', null));
$sut->checkPreAuth(new TestUserEntity());
} catch (\Exception $ex) {
$this->fail('UserChecker should not throw exception in checkPreAuth(), ' . $ex->getMessage());
}
@@ -37,7 +36,7 @@ class UserCheckerTest extends TestCase
$sut = new UserChecker();
try {
$sut->checkPostAuth(new SymfonyUser('sdf', null));
$sut->checkPostAuth(new TestUserEntity());
} catch (\Exception $ex) {
$this->fail('UserChecker should not throw exception in checkPostAuth(), ' . $ex->getMessage());
}