You are here

private function ReadinessValidationTest::delayRequestTime in Automatic Updates 8.2

Delays the request for the test.

Parameters

int $minutes: The number of minutes to delay request time. Defaults to 61 minutes.

1 call to ReadinessValidationTest::delayRequestTime()
ReadinessValidationTest::testReadinessChecksAdminPages in tests/src/Functional/ReadinessValidationTest.php
Tests readiness checkers results on admin pages..

File

tests/src/Functional/ReadinessValidationTest.php, line 396

Class

ReadinessValidationTest
Tests readiness validation.

Namespace

Drupal\Tests\automatic_updates\Functional

Code

private function delayRequestTime(int $minutes = 61) : void {
  static $total_delay = 0;
  $total_delay += $minutes;
  TestTime::setFakeTimeByOffset("+{$total_delay} minutes");
}