This commit is contained in:
2025-07-02 12:08:06 +02:00
parent fef2fe915a
commit b7c0eaae9d

View File

@@ -93,7 +93,7 @@ class RemoveExpiredExportGenerationCronJobTest extends TestCase
new ExportGeneration('dummy', []), new ExportGeneration('dummy', []),
]; ];
$repo->findExpiredExportGeneration(Argument::that(fn($dateTime) => $repo->findExpiredExportGeneration(Argument::that(fn ($dateTime) =>
// Ensure the repository is called with the current clock time // Ensure the repository is called with the current clock time
$dateTime instanceof \DateTimeImmutable $dateTime instanceof \DateTimeImmutable
&& $dateTime->getTimestamp() === $clock->now()->getTimestamp()))->willReturn($expiredExports); && $dateTime->getTimestamp() === $clock->now()->getTimestamp()))->willReturn($expiredExports);