dailyNotificationDigestCronjob = self::getContainer()->get(DailyNotificationDigestCronjob::class); } public function testRunWithNullPreviousExecutionData(): void { $actual = $this->dailyNotificationDigestCronjob->run([]); self::assertArrayHasKey('last_execution', $actual); self::assertInstanceOf( \DateTimeImmutable::class, \DateTimeImmutable::createFromFormat('Y-m-d-H:i:s.u e', $actual['last_execution']), 'test that the string can be converted to a date' ); } }