add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+23 -25
View File
@@ -2,42 +2,42 @@
namespace App\Providers;
use App\Models\ClassProgressReport;
use App\Models\ClassSection;
use App\Models\IpAttempt;
use App\Models\LateSlipLog;
use App\Models\Message;
use App\Models\NavItem;
use App\Models\Preferences;
use App\Models\Setting;
use App\Models\Staff;
use App\Models\SupportRequest;
use App\Policies\ClassProgressReportPolicy;
use App\Policies\ClassSectionPolicy;
use App\Policies\IpAttemptPolicy;
use App\Policies\LateSlipLogPolicy;
use App\Policies\MessagePolicy;
use App\Policies\NavItemPolicy;
use App\Policies\PreferencesPolicy;
use App\Policies\SettingPolicy;
use App\Policies\StaffPolicy;
use App\Policies\SupportRequestPolicy;
use App\Services\ApplicationUrlService;
use App\Services\Attendance\AttendanceAutoPublishService;
use App\Services\Attendance\AttendancePolicyService;
use App\Services\Attendance\AttendanceRecordSyncService;
use App\Services\Attendance\SemesterRangeService;
use App\Services\Attendance\StudentAttendanceWriterService;
use App\Services\Attendance\TeacherAttendanceSubmissionService;
use App\Services\Attendance\AttendanceAutoPublishService;
use App\Services\AttendanceTracking\AttendanceMailerService;
use App\Services\AttendanceTracking\DefaultAttendanceMailerService;
use App\Services\Invoices\InvoiceConfigService;
use App\Services\Invoices\InvoiceGradeService;
use App\Services\Invoices\InvoiceTuitionService;
use App\Services\Staff\StaffTimeOffLinkService;
use App\Models\NavItem;
use App\Models\ClassSection;
use App\Models\IpAttempt;
use App\Models\LateSlipLog;
use App\Models\Message;
use App\Models\Preferences;
use App\Models\Staff;
use App\Models\SupportRequest;
use App\Models\Setting;
use App\Models\ClassProgressReport;
use App\Policies\NavItemPolicy;
use App\Policies\ClassSectionPolicy;
use App\Policies\IpAttemptPolicy;
use App\Policies\LateSlipLogPolicy;
use App\Policies\MessagePolicy;
use App\Policies\PreferencesPolicy;
use App\Policies\StaffPolicy;
use App\Policies\SupportRequestPolicy;
use App\Policies\SettingPolicy;
use App\Policies\ClassProgressReportPolicy;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Routing\Redirector;
use Illuminate\Support\Facades\Gate;
use App\Services\ApplicationUrlService;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -58,12 +58,10 @@ class AppServiceProvider extends ServiceProvider
$this->app->singleton(InvoiceConfigService::class);
$this->app->bind(InvoiceGradeService::class, function ($app) {
$config = $app->make(InvoiceConfigService::class);
return new InvoiceGradeService($config->getGradeFee());
});
$this->app->bind(InvoiceTuitionService::class, function ($app) {
$config = $app->make(InvoiceConfigService::class);
return new InvoiceTuitionService(
$app->make(InvoiceGradeService::class),
$config->getGradeFee(),
+30 -30
View File
@@ -2,8 +2,8 @@
namespace App\Providers;
use App\Events\DeleteUnverifiedUser;
use App\Events\WhatsappInvitesSend;
use App\Events\DeleteUnverifiedUser;
use App\Listeners\AttendanceConsequenceListener;
use App\Listeners\BelowSixtyEmailListener;
use App\Listeners\DeleteUnverifiedUserListener;
@@ -15,94 +15,94 @@ class EventServiceProvider extends ServiceProvider
{
protected $listen = [
'attendance.follow_up' => [
AttendanceConsequenceListener::class.'@followUp',
AttendanceConsequenceListener::class . '@followUp',
],
'attendance.final_warning' => [
AttendanceConsequenceListener::class.'@finalWarning',
AttendanceConsequenceListener::class . '@finalWarning',
],
'attendance.dismissal' => [
AttendanceConsequenceListener::class.'@dismissal',
AttendanceConsequenceListener::class . '@dismissal',
],
'below60.email' => [
BelowSixtyEmailListener::class,
],
'admissionUnderReview' => [
SchoolEventListener::class.'@handleAdmissionUnderReview',
SchoolEventListener::class . '@handleAdmissionUnderReview',
],
'paymentPending' => [
SchoolEventListener::class.'@handlePaymentPending',
SchoolEventListener::class . '@handlePaymentPending',
],
'studentEnrolled' => [
SchoolEventListener::class.'@handleStudentEnrolled',
SchoolEventListener::class . '@handleStudentEnrolled',
],
'withdrawUnderReview' => [
SchoolEventListener::class.'@handleWithdrawUnderReview',
SchoolEventListener::class . '@handleWithdrawUnderReview',
],
'refundPending' => [
SchoolEventListener::class.'@handleRefundPending',
SchoolEventListener::class . '@handleRefundPending',
],
'withdrawn' => [
SchoolEventListener::class.'@handleWithdrawn',
SchoolEventListener::class . '@handleWithdrawn',
],
'denied' => [
SchoolEventListener::class.'@handleDenied',
SchoolEventListener::class . '@handleDenied',
],
'waitlist' => [
SchoolEventListener::class.'@handleWaitlist',
SchoolEventListener::class . '@handleWaitlist',
],
'enrollmentStatusChanged' => [
SchoolEventListener::class.'@handleEnrollmentStatusChanged',
SchoolEventListener::class . '@handleEnrollmentStatusChanged',
],
'paymentReceived' => [
SchoolEventListener::class.'@handlePaymentReceived',
SchoolEventListener::class . '@handlePaymentReceived',
],
'extraCharge' => [
SchoolEventListener::class.'@handleExtraCharge',
SchoolEventListener::class . '@handleExtraCharge',
],
'newAccountAdded' => [
SchoolEventListener::class.'@handleNewAccountAdded',
SchoolEventListener::class . '@handleNewAccountAdded',
],
'studentRegistered' => [
SchoolEventListener::class.'@handleStudentRegistered',
SchoolEventListener::class . '@handleStudentRegistered',
],
'delete_unverified_user' => [
SchoolEventListener::class.'@handleDeleteUnverifiedUser',
SchoolEventListener::class . '@handleDeleteUnverifiedUser',
],
'userRegistered' => [
SchoolEventListener::class.'@handleUserRegistered',
SchoolEventListener::class . '@handleUserRegistered',
],
'userProfileUpdated' => [
SchoolEventListener::class.'@handleUserProfileUpdated',
SchoolEventListener::class . '@handleUserProfileUpdated',
],
'userDeactivated' => [
SchoolEventListener::class.'@handleUserDeactivated',
SchoolEventListener::class . '@handleUserDeactivated',
],
'scoresPosted' => [
SchoolEventListener::class.'@handleScoresPosted',
SchoolEventListener::class . '@handleScoresPosted',
],
'finalScoreReleased' => [
SchoolEventListener::class.'@handleFinalScoreReleased',
SchoolEventListener::class . '@handleFinalScoreReleased',
],
'studentMarkedAbsent' => [
SchoolEventListener::class.'@handleStudentMarkedAbsent',
SchoolEventListener::class . '@handleStudentMarkedAbsent',
],
'studentMarkedLate' => [
SchoolEventListener::class.'@handleStudentMarkedLate',
SchoolEventListener::class . '@handleStudentMarkedLate',
],
'paymentMissed' => [
SchoolEventListener::class.'@handlePaymentMissed',
SchoolEventListener::class . '@handlePaymentMissed',
],
'classScheduleUpdated' => [
SchoolEventListener::class.'@handleClassScheduleUpdated',
SchoolEventListener::class . '@handleClassScheduleUpdated',
],
'newMessageReceived' => [
SchoolEventListener::class.'@handleNewMessageReceived',
SchoolEventListener::class . '@handleNewMessageReceived',
],
'systemAnnouncementPosted' => [
SchoolEventListener::class.'@handleSystemAnnouncementPosted',
SchoolEventListener::class . '@handleSystemAnnouncementPosted',
],
'customNotification' => [
SchoolEventListener::class.'@handleCustomNotification',
SchoolEventListener::class . '@handleCustomNotification',
],
DeleteUnverifiedUser::class => [
DeleteUnverifiedUserListener::class,