You are here

class TestForcePasswordChangeService in Force Password Change 8

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

Hierarchy

Expanded class hierarchy of TestForcePasswordChangeService

1 file declares its use of TestForcePasswordChangeService
ForcePasswordChangeServiceTest.php in tests/src/Unit/Service/ForcePasswordChangeServiceTest.php

File

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

Namespace

Drupal\Tests\force_password_change\Service
View source
class TestForcePasswordChangeService extends ForcePasswordChangeService {
  protected function getRequestTime() {
    return 1000101;
  }
  protected function userLoadMultiple(array $uids) {
    $return = [];
    foreach ($uids as $uid) {
      $return[$uid] = 'user' . $uid;
    }
    return $return;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ForcePasswordChangeService::$configFactory protected property * The config factory object * *
ForcePasswordChangeService::$currentUser protected property * The current user * *
ForcePasswordChangeService::$mapper protected property * The force password change data mapper * *
ForcePasswordChangeService::$userData protected property * The config factory object * *
ForcePasswordChangeService::addFirstTimeLogin public function * Overrides ForcePasswordChangeServiceInterface::addFirstTimeLogin
ForcePasswordChangeService::checkForForce public function * Overrides ForcePasswordChangeServiceInterface::checkForForce
ForcePasswordChangeService::forceUserPasswordChange public function * Overrides ForcePasswordChangeServiceInterface::forceUserPasswordChange
ForcePasswordChangeService::forceUsersPasswordChange public function * Overrides ForcePasswordChangeServiceInterface::forceUsersPasswordChange
ForcePasswordChangeService::getFirstTimeLoginUids public function * Overrides ForcePasswordChangeServiceInterface::getFirstTimeLoginUids
ForcePasswordChangeService::getLastChangeForRole public function * Overrides ForcePasswordChangeServiceInterface::getLastChangeForRole
ForcePasswordChangeService::getNonPendingUsersForRole public function * Overrides ForcePasswordChangeServiceInterface::getNonPendingUsersForRole
ForcePasswordChangeService::getPendingUsersForRole public function * Overrides ForcePasswordChangeServiceInterface::getPendingUsersForRole
ForcePasswordChangeService::getRoleExpiryTimePeriods public function * Overrides ForcePasswordChangeServiceInterface::getRoleExpiryTimePeriods
ForcePasswordChangeService::getTextDate public function * Overrides ForcePasswordChangeServiceInterface::getTextDate
ForcePasswordChangeService::getUserCountForRole public function * Overrides ForcePasswordChangeServiceInterface::getUserCountForRole
ForcePasswordChangeService::getUsersForRole public function * Overrides ForcePasswordChangeServiceInterface::getUsersForRole
ForcePasswordChangeService::insertExpiryForRoles public function * Overrides ForcePasswordChangeServiceInterface::insertExpiryForRoles
ForcePasswordChangeService::registerForcePasswordTime public function * Overrides ForcePasswordChangeServiceInterface::registerForcePasswordTime
ForcePasswordChangeService::removeFirstTimeLogin public function * Overrides ForcePasswordChangeServiceInterface::removeFirstTimeLogin
ForcePasswordChangeService::removePendingForce public function * Overrides ForcePasswordChangeServiceInterface::removePendingForce
ForcePasswordChangeService::setChangedTimeForUser public function * Overrides ForcePasswordChangeServiceInterface::setChangedTimeForUser
ForcePasswordChangeService::updateExpiryForRole public function * Overrides ForcePasswordChangeServiceInterface::updateExpiryForRole
ForcePasswordChangeService::updateLastChangeForRoles public function * Overrides ForcePasswordChangeServiceInterface::updateLastChangeForRoles
ForcePasswordChangeService::__construct public function * Constructs a ForcePasswordChangeService object. * *
TestForcePasswordChangeService::getRequestTime protected function * Retrieve the timestamp for the current request. Spun out into a protected function * to allow for overriding in Unit Tests. * * Overrides ForcePasswordChangeService::getRequestTime
TestForcePasswordChangeService::userLoadMultiple protected function * Helper function to load mulitple user objects. Spun out into a protected function * to allow for overriding in Unit Tests. * * Overrides ForcePasswordChangeService::userLoadMultiple