You are here

public function TestTimeService::__construct in Search API 8

Constructs a TestTimeService object.

Overrides Time::__construct

File

tests/src/Kernel/TestTimeService.php, line 24

Class

TestTimeService
Provides a dummy time service that can be used for testing.

Namespace

Drupal\Tests\search_api\Kernel

Code

public function __construct() {
  $this->requestTime = time();
}