fixes on tests

This commit is contained in:
2021-12-08 10:56:39 +00:00
parent 56dd825f39
commit fa5001265f
26 changed files with 146 additions and 136 deletions

View File

@@ -247,7 +247,7 @@ final class AuthorizationHelperTest extends KernelTestCase
$expectedResult,
Scope $testedScope,
User $user,
Role $role,
string $role,
Center $center,
$message
) {

View File

@@ -88,7 +88,7 @@ final class TokenManagerTest extends KernelTestCase
$this->assertFalse($tokenManager->verify($hash . '5', $token, $user, $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token . '25', $user, $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token, $user->setUsernameCanonical('test2'), $timestamp));
$this->assertFalse($tokenManager->verify($hash, $token, $user, $timestamp + 1));
$this->assertFalse($tokenManager->verify($hash, $token, $user, (string) ($timestamp + 1)));
}
public function testVerifyExpiredFails()