Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user