This commit is contained in:
lizandrogd
2026-01-21 12:44:58 -05:00
parent e6e9f76230
commit 3e57e6946c
14 changed files with 70 additions and 2 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -2
View File
@@ -252,8 +252,12 @@ class ServiceTestSuite {
});
$this->serviceTest("Test gestión de usuarios", function() {
$testPhone = '573168950803';
// Generar teléfono de prueba único para evitar colisiones
$testPhone = '573' . rand(100000000, 999999999);
// Asegurar limpieza previa (por si quedó un registro previo con mismo número)
$this->db->execute("DELETE FROM users WHERE phone_number = :phone", ['phone' => $testPhone]);
// Crear usuario de prueba
$userId = $this->db->insert('users', [
'phone_number' => $testPhone,