fix tests
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Tests\Unit\Services\Attendance;
|
||||
|
||||
use App\Models\AttendanceData;
|
||||
use App\Models\Student;
|
||||
use App\Services\Attendance\AttendanceRecordSyncService;
|
||||
use App\Services\Attendance\StudentAttendanceWriterService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
@@ -29,7 +31,7 @@ class StudentAttendanceWriterServiceTest extends TestCase
|
||||
]);
|
||||
|
||||
$sync = Mockery::mock(AttendanceRecordSyncService::class);
|
||||
$service = new StudentAttendanceWriterService(new \App\Models\AttendanceData(), new \App\Models\Student(), $sync);
|
||||
$service = new StudentAttendanceWriterService(new AttendanceData, new Student, $sync);
|
||||
|
||||
$this->assertSame('S1', $service->resolveStudentSchoolId(1, null));
|
||||
}
|
||||
@@ -65,7 +67,7 @@ class StudentAttendanceWriterServiceTest extends TestCase
|
||||
$sync = Mockery::mock(AttendanceRecordSyncService::class);
|
||||
$sync->shouldReceive('updateAttendanceRecord')->once();
|
||||
|
||||
$service = new StudentAttendanceWriterService(new \App\Models\AttendanceData(), new \App\Models\Student(), $sync);
|
||||
$service = new StudentAttendanceWriterService(new AttendanceData, new Student, $sync);
|
||||
|
||||
$service->saveOrUpdateStudentAttendance([
|
||||
'class_section_id' => 1,
|
||||
|
||||
Reference in New Issue
Block a user