You are here

protected function TestForcePasswordChangeService::getRequestTime in Force Password Change 8

* Retrieve the timestamp for the current request. Spun out into a protected function * to allow for overriding in Unit Tests. * *

Return value

int * A UNIX timestamp representing the time of the current request

Overrides ForcePasswordChangeService::getRequestTime

File

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

Class

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

Namespace

Drupal\Tests\force_password_change\Service

Code

protected function getRequestTime() {
  return 1000101;
}