fix unit tests as well as missing code
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -53,6 +53,7 @@ class StudentControllerTest extends TestCase
|
||||
DB::table('semester_scores')->insert([
|
||||
'student_id' => $studentId,
|
||||
'class_section_id' => 701,
|
||||
'school_id' => 1,
|
||||
'school_year' => '2025-2026',
|
||||
'semester' => 'Fall',
|
||||
'semester_score' => 90,
|
||||
@@ -71,7 +72,7 @@ class StudentControllerTest extends TestCase
|
||||
$user = $this->seedUser();
|
||||
$parentId = 1234;
|
||||
|
||||
Sanctum::actingAs($user, [], 'api');
|
||||
Sanctum::actingAs($user);
|
||||
$response = $this->postJson('/api/v1/students', [
|
||||
'school_year' => '2025-2026',
|
||||
'firstname' => 'Sara',
|
||||
|
||||
Reference in New Issue
Block a user