fix logic and tests, update docker CI file
This commit is contained in:
@@ -62,6 +62,12 @@ class InvoiceControllerTest extends TestCase
|
||||
|
||||
private function seedBaseData(bool $withInvoice = true): void
|
||||
{
|
||||
DB::table('configuration')->insert([
|
||||
'id' => 1,
|
||||
'config_key' => 'school_year',
|
||||
'config_value' => '2025-2026',
|
||||
]);
|
||||
|
||||
DB::table('roles')->insert([
|
||||
['id' => 1, 'name' => 'parent', 'slug' => 'parent', 'is_active' => 1],
|
||||
]);
|
||||
@@ -98,13 +104,20 @@ class InvoiceControllerTest extends TestCase
|
||||
'firstname' => 'Kid',
|
||||
'lastname' => 'User',
|
||||
'school_id' => 1,
|
||||
'age' => 10,
|
||||
'gender' => 'Male',
|
||||
'is_active' => 1,
|
||||
'photo_consent' => 1,
|
||||
'year_of_registration' => '2025',
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
DB::table('classSection')->insert([
|
||||
'class_section_id' => 1,
|
||||
'class_section_name' => '1A',
|
||||
'class_id' => 1,
|
||||
'semester' => 'Fall',
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
DB::table('student_class')->insert([
|
||||
@@ -112,6 +125,7 @@ class InvoiceControllerTest extends TestCase
|
||||
'class_section_id' => 1,
|
||||
'school_year' => '2025-2026',
|
||||
'is_event_only' => 0,
|
||||
'semester' => 'Fall',
|
||||
]);
|
||||
|
||||
DB::table('enrollments')->insert([
|
||||
@@ -119,6 +133,7 @@ class InvoiceControllerTest extends TestCase
|
||||
'parent_id' => 10,
|
||||
'class_section_id' => 1,
|
||||
'enrollment_status' => 'enrolled',
|
||||
'enrollment_date' => '2025-01-10',
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user