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:
@@ -78,7 +78,7 @@ class DoctorImportService
|
||||
$doctor = new Doctor($user, $name);
|
||||
$doctor->setSource($source);
|
||||
$doctor->setOwnerStatus('unclaimed');
|
||||
$doctor->setActiveDoctorAppointment(false); // تا مالک واقعی برنامهٔ کاری بسازد
|
||||
$doctor->setActiveDoctorAppointment(true); // پزشک ایمپورتشده فعال باشد
|
||||
$created = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user