Fix Pint formatting
This commit is contained in:
@@ -25,9 +25,9 @@ class ParentAttendanceReportServiceTest extends TestCase
|
||||
$this->seedStudent($parentId);
|
||||
|
||||
$service = new ParentAttendanceReportService(
|
||||
new ParentConfigService(),
|
||||
new ParentAttendanceReportCalendarService(new ParentConfigService()),
|
||||
new SemesterRangeService(new SemesterConfigService())
|
||||
new ParentConfigService,
|
||||
new ParentAttendanceReportCalendarService(new ParentConfigService),
|
||||
new SemesterRangeService(new SemesterConfigService)
|
||||
);
|
||||
|
||||
$data = $service->formData($parentId);
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Tests\Unit\Services\Parents;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Services\Parents\ParentAttendanceService;
|
||||
use App\Services\Parents\ParentConfigService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
@@ -64,7 +63,7 @@ class ParentAttendanceServiceTest extends TestCase
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
$service = new ParentAttendanceService(new ParentConfigService());
|
||||
$service = new ParentAttendanceService(new ParentConfigService);
|
||||
$result = $service->listAttendance($parentId, '2025-2026');
|
||||
|
||||
$this->assertSame('2025-2026', $result['selectedYear']);
|
||||
|
||||
@@ -24,7 +24,7 @@ class ParentConfigServiceTest extends TestCase
|
||||
['config_key' => 'fall_semester_start', 'config_value' => '2025-09-05'],
|
||||
]);
|
||||
|
||||
$service = new ParentConfigService();
|
||||
$service = new ParentConfigService;
|
||||
$context = $service->context();
|
||||
|
||||
$this->assertSame('2025-2026', $context['school_year']);
|
||||
|
||||
@@ -18,7 +18,7 @@ class ParentEmergencyContactServiceTest extends TestCase
|
||||
$this->seedConfig();
|
||||
$parentId = $this->seedParent();
|
||||
|
||||
$service = new ParentEmergencyContactService(new ParentConfigService(), new PhoneFormatterService());
|
||||
$service = new ParentEmergencyContactService(new ParentConfigService, new PhoneFormatterService);
|
||||
$contact = $service->store($parentId, [
|
||||
'name' => 'Sam Contact',
|
||||
'cellphone' => '1234567890',
|
||||
|
||||
@@ -42,7 +42,7 @@ class ParentEnrollmentServiceTest extends TestCase
|
||||
'is_withdrawn' => 0,
|
||||
]);
|
||||
|
||||
$service = new ParentEnrollmentService(new ParentConfigService());
|
||||
$service = new ParentEnrollmentService(new ParentConfigService);
|
||||
$result = $service->overview($parentId, '2025-2026');
|
||||
|
||||
$this->assertSame('2025-2026', $result['selectedYear']);
|
||||
|
||||
@@ -34,7 +34,7 @@ class ParentInvoiceServiceTest extends TestCase
|
||||
'issue_date' => '2025-09-02',
|
||||
]);
|
||||
|
||||
$service = new ParentInvoiceService();
|
||||
$service = new ParentInvoiceService;
|
||||
$rows = $service->listInvoices($parentId);
|
||||
|
||||
$this->assertCount(1, $rows);
|
||||
|
||||
@@ -18,7 +18,7 @@ class ParentRegistrationServiceTest extends TestCase
|
||||
$this->seedConfig();
|
||||
$parentId = $this->seedParent();
|
||||
|
||||
$service = new ParentRegistrationService(new ParentConfigService(), new SchoolIdService());
|
||||
$service = new ParentRegistrationService(new ParentConfigService, new SchoolIdService);
|
||||
$result = $service->register($parentId, [
|
||||
[
|
||||
'firstname' => 'Omar',
|
||||
|
||||
Reference in New Issue
Block a user