From fdb12030baae224cdf761e323debb02b93dcea8a Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Sun, 20 Aug 2023 18:19:41 +0200 Subject: [PATCH] Fixed usage of deprecated PHPUnit method --- tests/Security/Core/User/EntityUserProviderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Security/Core/User/EntityUserProviderTest.php b/tests/Security/Core/User/EntityUserProviderTest.php index 62f2ceb66..e39f829c8 100644 --- a/tests/Security/Core/User/EntityUserProviderTest.php +++ b/tests/Security/Core/User/EntityUserProviderTest.php @@ -44,7 +44,7 @@ public function testLoadUserByIdentifierThrowsExceptionWhenUserIsNotFound(): voi $provider = $this->createEntityUserProvider(); $this->expectException(UserNotFoundException::class); - $this->expectDeprecationMessage('User \'asm89\' not found.'); + $this->expectExceptionMessage('User \'asm89\' not found.'); $provider->loadUserByIdentifier('asm89'); }