Форматирование
This commit is contained in:
@@ -176,11 +176,12 @@ it('builds auto fill payload from the same patient metrics that are stored in re
|
||||
'rf_DepartmentID' => 100,
|
||||
]);
|
||||
|
||||
$department = new Department();
|
||||
$department = new Department;
|
||||
$department->department_id = 10;
|
||||
$department->rf_mis_department_id = 100;
|
||||
|
||||
$user = new class extends User {
|
||||
$user = new class extends User
|
||||
{
|
||||
public function isHeadOfDepartment()
|
||||
{
|
||||
return false;
|
||||
@@ -244,11 +245,11 @@ it('builds auto fill payload from the same patient metrics that are stored in re
|
||||
});
|
||||
|
||||
it('creates auto-filled report through report service with auto flag and scoped department user', function () {
|
||||
$department = new Department();
|
||||
$department = new Department;
|
||||
$department->department_id = 10;
|
||||
$department->rf_mis_department_id = 100;
|
||||
|
||||
$user = new User();
|
||||
$user = new User;
|
||||
$user->id = 15;
|
||||
$user->rf_lpudoctor_id = 5015;
|
||||
$user->rf_department_id = 999;
|
||||
@@ -276,7 +277,7 @@ it('creates auto-filled report through report service with auto flag and scoped
|
||||
&& $scopedUser->rf_department_id === 10
|
||||
&& $scopedUser->department->department_id === 10;
|
||||
})
|
||||
->andReturn(new \App\Models\Report());
|
||||
->andReturn(new \App\Models\Report);
|
||||
|
||||
$service = new AutoReportService($reportService, app(DateRangeService::class));
|
||||
|
||||
@@ -284,11 +285,11 @@ it('creates auto-filled report through report service with auto flag and scoped
|
||||
});
|
||||
|
||||
it('force recreation removes previous report scoped data before storing a new auto-filled report', function () {
|
||||
$department = new Department();
|
||||
$department = new Department;
|
||||
$department->department_id = 10;
|
||||
$department->rf_mis_department_id = 100;
|
||||
|
||||
$user = new User();
|
||||
$user = new User;
|
||||
$user->id = 15;
|
||||
$user->rf_lpudoctor_id = 5015;
|
||||
$user->rf_department_id = 10;
|
||||
@@ -340,7 +341,7 @@ it('force recreation removes previous report scoped data before storing a new au
|
||||
$reportService
|
||||
->shouldReceive('storeReport')
|
||||
->once()
|
||||
->andReturn(new \App\Models\Report());
|
||||
->andReturn(new \App\Models\Report);
|
||||
|
||||
$service = new AutoReportService($reportService, app(DateRangeService::class));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user