protected function ForcePasswordChangeServiceTest::userLoadMultiple in Force Password Change 2.0.x
Helper function to load mulitple user objects. Spun out into a protected function to allow for overriding in Unit Tests.
Parameters
array $uids: The User IDs of the users to load.
Return value
array An array of fully loaded user objects.
Overrides ForcePasswordChangeService::userLoadMultiple
File
- tests/
modules/ force_password_change_service_test/ src/ Service/ ForcePasswordChangeServiceTest.php, line 15
Class
- ForcePasswordChangeServiceTest
- Test class created to override the ForcePasswordChangeService service.
Namespace
Drupal\force_password_change_service_test\ServiceCode
protected function userLoadMultiple(array $uids) {
$return = [];
foreach ($uids as $uid) {
$return[$uid] = 'user' . $uid;
}
return $return;
}