up
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user