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,