diff --git a/src/Cron.php b/src/Cron.php index a1c33e5..94710ec 100644 --- a/src/Cron.php +++ b/src/Cron.php @@ -76,12 +76,11 @@ class Cron implements CronInterface { * @param int $time * Time to check against license expiration. * - * @return array|int + * @return array * IDs of matching commerce_license entities. */ protected function getLicensesToExpire($time) { // Get all of the active expired licenses. - // Ones we've already revoked will be marked expired. $query = \Drupal::entityQuery('commerce_license') ->condition('state', 'active') ->condition('expires', $time, '<=') diff --git a/tests/src/Kernel/LicenseCronExpiryTest.php b/tests/src/Kernel/LicenseCronExpiryTest.php index 5e03ce1..9b90926 100644 --- a/tests/src/Kernel/LicenseCronExpiryTest.php +++ b/tests/src/Kernel/LicenseCronExpiryTest.php @@ -334,8 +334,7 @@ class LicenseCronExpiryTest extends EntityKernelTestBase { * Returns a fresh copy of commerce_license storage. * * Clear the entity handlers cached in the entity type manager, so that the - * license storage handler gets re-instantiated with the mocked service - * injected. + * license storage handler gets current data. * * (This clears all the entity type definitions too, which we don't need; * see https://www.drupal.org/node/2902487.)