fir 61 failed tests
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 2m33s
API CI/CD / Build frontend assets (push) Successful in 2m20s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 2m6s
API CI/CD / Test (PHPUnit) (push) Failing after 2m33s
API CI/CD / Build frontend assets (push) Successful in 2m20s
API CI/CD / Security audit (push) Successful in 32s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -121,7 +121,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments?school_year=2025-2026&semester=Fall');
|
||||
->getJson('/api/v1/assignments?school_year=2025-2026&semester=Fall');
|
||||
|
||||
$response->assertOk()
|
||||
->assertJsonPath('message', 'Assignments retrieved successfully.')
|
||||
@@ -181,7 +181,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments?school_year=2025-2026');
|
||||
->getJson('/api/v1/assignments?school_year=2025-2026');
|
||||
|
||||
$response->assertOk()
|
||||
->assertJsonCount(1, 'data.classSections')
|
||||
@@ -209,7 +209,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments');
|
||||
->getJson('/api/v1/assignments');
|
||||
|
||||
$response->assertOk();
|
||||
|
||||
@@ -247,7 +247,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments');
|
||||
->getJson('/api/v1/assignments');
|
||||
|
||||
$response->assertOk()
|
||||
->assertJsonPath('data.classSections.0.students', []);
|
||||
@@ -264,7 +264,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
];
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->postJson('/api/assignments', $payload);
|
||||
->postJson('/api/v1/assignments', $payload);
|
||||
|
||||
$response->assertCreated()
|
||||
->assertJsonPath('message', 'Assignment saved successfully.')
|
||||
@@ -304,7 +304,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
];
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->postJson('/api/assignments', $payload);
|
||||
->postJson('/api/v1/assignments', $payload);
|
||||
|
||||
$response->assertCreated()
|
||||
->assertJsonPath('data.description', 'Updated description');
|
||||
@@ -331,7 +331,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
public function test_store_validates_required_fields(): void
|
||||
{
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->postJson('/api/assignments', []);
|
||||
->postJson('/api/v1/assignments', []);
|
||||
|
||||
$response->assertUnprocessable()
|
||||
->assertJsonValidationErrors([
|
||||
@@ -353,7 +353,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
];
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->postJson('/api/assignments', $payload);
|
||||
->postJson('/api/v1/assignments', $payload);
|
||||
|
||||
$response->assertUnprocessable()
|
||||
->assertJsonValidationErrors([
|
||||
@@ -383,7 +383,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments/class-assignment-data');
|
||||
->getJson('/api/v1/assignments/class-assignment-data');
|
||||
|
||||
$response->assertOk()
|
||||
->assertJsonPath('message', 'Class assignment data retrieved successfully.')
|
||||
@@ -416,7 +416,7 @@ class AssignmentApiControllerTest extends TestCase
|
||||
]);
|
||||
|
||||
$response = $this->actingAs($this->user, 'sanctum')
|
||||
->getJson('/api/assignments/class-assignment-data');
|
||||
->getJson('/api/v1/assignments/class-assignment-data');
|
||||
|
||||
$response->assertOk();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user