connection = self::$container->get(Connection::class); } public function testFullRun(): void { $job = new \Chill\MainBundle\Service\AddressGeographicalUnit\RefreshAddressToGeographicalUnitMaterializedViewCronJob( $this->connection ); $lastExecution = new CronJobExecution($job->getKey()); $lastExecution->setLastStart(new DateTimeImmutable('2 days ago')); $this->assertIsBool($job->canRun($lastExecution)); $job->run(); } }