feat(doctor): imported IRIMC doctors are active by default

Per request, doctors created via import now set active_doctor_appointment
= true (was false). DoctorImportTest updated to assert active.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
hamed
2026-07-11 14:20:42 +03:30
co-authored by Claude Opus 4.8
parent 51432c7bb9
commit 3dcd4f3b26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class DoctorImportTest extends ApiTestCase
$doctor = $this->em->getRepository(Doctor::class)->findOneBy(['uuid' => $data['data']['uuid']]);
$this->assertSame('unclaimed', $doctor->getOwnerStatus());
$this->assertSame('irimc', $doctor->getSource());
$this->assertFalse($doctor->isActiveDoctorAppointment());
$this->assertTrue($doctor->isActiveDoctorAppointment());
// نام بدون پیشوند «دکتر» ذخیره می‌شود (UI خودش «دکتر» را جلو می‌گذارد)
$this->assertSame('صفورا حجازی نیا', $doctor->getName());