You are here

protected function TestForcePasswordChangeService::userLoadMultiple in Force Password Change 8

* 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 array * An array of fully loaded user objects.

Overrides ForcePasswordChangeService::userLoadMultiple

File

tests/src/Unit/Service/TestForcePasswordChangeService.php, line 18

Class

TestForcePasswordChangeService
@coversDefaultClass \Drupal\force_password_change\Service\ForcePasswordChangeService @group force_password_change

Namespace

Drupal\Tests\force_password_change\Service

Code

protected function userLoadMultiple(array $uids) {
  $return = [];
  foreach ($uids as $uid) {
    $return[$uid] = 'user' . $uid;
  }
  return $return;
}