You are here

protected static function LicenseCronExpiryTest::yesterday in Commerce License 8.2

Returns the time a day ago.

Return value

int Yesterday's time.

3 calls to LicenseCronExpiryTest::yesterday()
LicenseCronExpiryTest::testGetLicenseIdsToExpireYesterday in tests/src/Kernel/LicenseCronExpiryTest.php
License has expired.
LicenseCronExpiryTest::testLicenseCronExpiryExpired in tests/src/Kernel/LicenseCronExpiryTest.php
Tests that a cron run expires an expired license.
LicenseCronExpiryTest::testLicenseExpireJob in tests/src/Kernel/LicenseCronExpiryTest.php
Tests that the LicenseExpire job expires the license.

File

tests/src/Kernel/LicenseCronExpiryTest.php, line 85

Class

LicenseCronExpiryTest
Tests that cron expires a license.

Namespace

Drupal\Tests\commerce_license\Kernel\System

Code

protected static function yesterday() {
  return self::today() - self::TIME_ONE_DAY;
}