Skip to content

Commit

Permalink
Merge pull request #64 from stopfstedt/closure_be_gone
Browse files Browse the repository at this point in the history
long-hand test fixtures definition.
  • Loading branch information
jrjohnson authored Oct 31, 2024
2 parents b16b60c + 35fa508 commit 6599797
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/lib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -884,10 +884,17 @@ public function test_sync_from_ilios_learner_group_instructors(): void {
],
])),
new Response(200, [], json_encode([
'users' => array_map(
fn ($i) => ['id' => $i, 'campusId' => 'xx100000'. $i, 'enabled' => true ],
range(1, 9)
),
'users' => [
['id' => 1, 'campusId' => 'xx1000001', 'enabled' => true ],
['id' => 2, 'campusId' => 'xx1000002', 'enabled' => true ],
['id' => 3, 'campusId' => 'xx1000003', 'enabled' => true ],
['id' => 4, 'campusId' => 'xx1000004', 'enabled' => true ],
['id' => 5, 'campusId' => 'xx1000005', 'enabled' => true ],
['id' => 6, 'campusId' => 'xx1000006', 'enabled' => true ],
['id' => 7, 'campusId' => 'xx1000007', 'enabled' => true ],
['id' => 8, 'campusId' => 'xx1000008', 'enabled' => true ],
['id' => 9, 'campusId' => 'xx1000009', 'enabled' => true ],
],
])),
]));
$container = [];
Expand Down

0 comments on commit 6599797

Please sign in to comment.