From de913486e01e28ee46221445774bdbaf9ab1428f Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 4 May 2026 12:27:46 +0200 Subject: [PATCH] Specify exception message in assertions --- tests/TenantDatabaseManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TenantDatabaseManagerTest.php b/tests/TenantDatabaseManagerTest.php index 71207927..2ae014f8 100644 --- a/tests/TenantDatabaseManagerTest.php +++ b/tests/TenantDatabaseManagerTest.php @@ -564,10 +564,10 @@ test('database managers validate parameters that cannot be bound', function ($dr ]); expect(fn () => $manager->createDatabase($tenant)) - ->toThrow(InvalidArgumentException::class); + ->toThrow(InvalidArgumentException::class, 'Forbidden character'); expect(fn () => $manager->deleteDatabase($tenant)) - ->toThrow(InvalidArgumentException::class); + ->toThrow(InvalidArgumentException::class, 'Forbidden character'); } else { // Invalid username, createUser() and deleteUser() should // throw an invalid argument exception.