public function TestTimeService::advanceTime in Search API 8
Advances the reported request time.
Parameters
int $seconds: (optional) Number of seconds by which to advance the reported request time.
Return value
$this
File
- tests/
src/ Kernel/ TestTimeService.php, line 44
Class
- TestTimeService
- Provides a dummy time service that can be used for testing.
Namespace
Drupal\Tests\search_api\KernelCode
public function advanceTime($seconds = 1) {
$this->requestTime += $seconds;
return $this;
}