add test batches
This commit is contained in:
@@ -99,7 +99,7 @@ class StaffControllerTest extends TestCase
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
$response = $this->patchJson('/api/v1/staff/'.$staff->id, [
|
||||
$response = $this->patchJson('/api/v1/staff/' . $staff->id, [
|
||||
'firstname' => 'Updated',
|
||||
]);
|
||||
|
||||
@@ -127,7 +127,7 @@ class StaffControllerTest extends TestCase
|
||||
'school_year' => '2025-2026',
|
||||
]);
|
||||
|
||||
$response = $this->deleteJson('/api/v1/staff/'.$staff->id);
|
||||
$response = $this->deleteJson('/api/v1/staff/' . $staff->id);
|
||||
|
||||
$response->assertOk();
|
||||
$this->assertDatabaseMissing('staff', [
|
||||
@@ -146,7 +146,7 @@ class StaffControllerTest extends TestCase
|
||||
$user = User::query()->create([
|
||||
'firstname' => 'Test',
|
||||
'lastname' => 'User',
|
||||
'email' => $email ?? ($roleName.'@example.com'),
|
||||
'email' => $email ?? ($roleName . '@example.com'),
|
||||
'cellphone' => '5555555555',
|
||||
'address_street' => '123 Main',
|
||||
'city' => 'City',
|
||||
|
||||
Reference in New Issue
Block a user