public function relaunchAction(CronTask $cronTask)
 {
     $em = $this->getDoctrine()->getManager();
     $cronTask->setRelaunch(true);
     $em->persist($cronTask);
     $em->flush();
     return $this->redirectToRoute('dsp_cm_crontasks_log');
 }
 public function testCronTask()
 {
     $cronTask = new CronTask();
     $cronTask->setName('test');
     $cronTaskLog = new CronTaskLog();
     $cronTaskLog->setCronTask($cronTask);
     $this->assertEquals($cronTask, $cronTaskLog->getCronTask());
 }
 public function testSlug()
 {
     $cronTask = new CronTask();
     $cronTask->setSlug('test');
     $this->assertEquals('test', $cronTask->getSlug());
 }