From d9ae27425d51fb08f1b45c56b028a1f1f985fb3e Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 5 May 2026 10:06:41 +0200 Subject: [PATCH] Delete redundant cleanup --- tests/TenantDatabaseManagerTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/TenantDatabaseManagerTest.php b/tests/TenantDatabaseManagerTest.php index 2ff65460..4ca0d5fd 100644 --- a/tests/TenantDatabaseManagerTest.php +++ b/tests/TenantDatabaseManagerTest.php @@ -622,18 +622,14 @@ test('database managers validate parameters that cannot be bound', function ($dr // Special characters are allowed in passwords $tenantWithValidPassword = Tenant::make([ - 'tenancy_db_name' => 'valid_database_name890' . Str::random(4), - 'tenancy_db_username' => 'valid_USERNAME' . Str::random(4), + 'tenancy_db_name' => 'valid_database_name890' . Str::random(8), + 'tenancy_db_username' => 'valid_USERNAME' . Str::random(8), 'tenancy_db_password' => "]pa$$ ;word", ]); expect(fn () => $manager->createUser($tenantWithValidPassword->database())) ->not()->toThrow(InvalidArgumentException::class, 'Forbidden character'); - // Delete the created user - expect(fn () => $manager->deleteUser($tenantWithValidPassword->database())) - ->not()->toThrow(InvalidArgumentException::class); - $tenantWithNullDbParameters = Tenant::make([ 'tenancy_db_name' => null, 'tenancy_db_username' => null,