protected static function LicenseCronExpiryTest::today in Commerce License 8.2
Returns the current time.
Return value
int The time.
4 calls to LicenseCronExpiryTest::today()
- LicenseCronExpiryTest::testGetLicenseIdsToExpireTomorrow in tests/
src/ Kernel/ LicenseCronExpiryTest.php - License hasn't expired.
- LicenseCronExpiryTest::testGetLicenseIdsToExpireYesterday in tests/
src/ Kernel/ LicenseCronExpiryTest.php - License has expired.
- LicenseCronExpiryTest::tomorrow in tests/
src/ Kernel/ LicenseCronExpiryTest.php - Returns the time a day from now.
- LicenseCronExpiryTest::yesterday in tests/
src/ Kernel/ LicenseCronExpiryTest.php - Returns the time a day ago.
File
- tests/
src/ Kernel/ LicenseCronExpiryTest.php, line 75
Class
- LicenseCronExpiryTest
- Tests that cron expires a license.
Namespace
Drupal\Tests\commerce_license\Kernel\SystemCode
protected static function today() {
return time();
}