TestForcePasswordChangeService.php in Force Password Change 8
File
tests/src/Unit/Service/TestForcePasswordChangeService.php
View source
<?php
namespace Drupal\Tests\force_password_change\Service;
use Drupal\force_password_change\Service\ForcePasswordChangeService;
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;
}
}