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