Skip to content

Commit

Permalink
fix test - include mock getEmployessForDept response
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Sep 13, 2024
1 parent b03ff6f commit 1b631c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Feature/api/users/leaves/GetAllUserLeavesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@

$BANDAID_API = config('bandaid.baseUri');
Http::fake([
// mock the getEmployeesForDept response, needed for checking
// whether the instructor has an active status
"{$BANDAID_API}/department/*/employees" => mockResponse("Bandaid/mockGetEmployeesForDept.json"),

// Now, put the $instructor1 in the mock
// reponse for getEmployeesForDept($deptId)
"{$BANDAID_API}/classes/list/{$deptId}" => Http::response([
Expand Down

0 comments on commit 1b631c0

Please sign in to comment.