Upgrade tests to PhpUnit 10 (#5252)

This commit is contained in:
Kevin Papst
2024-12-22 01:25:30 +01:00
committed by GitHub
parent 9bd37fb695
commit c7f0508707
377 changed files with 3308 additions and 3409 deletions

View File

@@ -29,13 +29,13 @@ class LastLoginSubscriberTest extends TestCase
{
$events = LastLoginSubscriber::getSubscribedEvents();
$this->assertArrayHasKey(UserInteractiveLoginEvent::class, $events);
self::assertArrayHasKey(UserInteractiveLoginEvent::class, $events);
$methodName = $events[UserInteractiveLoginEvent::class];
$this->assertTrue(method_exists(LastLoginSubscriber::class, $methodName));
self::assertTrue(method_exists(LastLoginSubscriber::class, $methodName));
$this->assertArrayHasKey(LoginSuccessEvent::class, $events);
self::assertArrayHasKey(LoginSuccessEvent::class, $events);
$methodName = $events[LoginSuccessEvent::class];
$this->assertTrue(method_exists(LastLoginSubscriber::class, $methodName));
self::assertTrue(method_exists(LastLoginSubscriber::class, $methodName));
}
public function testOnImplicitLogin(): void