Exemplo n.º 1
0
 public function testResetCrashes()
 {
     $this->notifier->expects($this->once())->method('notify')->with(NotifierInterface::MESSAGE_UPDATE);
     $task = $this->loadTask();
     $task->setCrashed(42);
     $this->sut->resetCrashes($task);
     $this->assertEquals(0, $task->getCrashed());
 }
Exemplo n.º 2
0
 public function testResetCrashes()
 {
     $notifier = $this->createNotifierMock();
     $notifier->expects($this->once())->method('notify')->with(Notifier::MESSAGE_UPDATE);
     $manipulator = new TaskManipulator(self::$DI['app']['EM'], $notifier, self::$DI['app']['translator'], self::$DI['app']['repo.tasks']);
     $task = $this->loadTask();
     $task->setCrashed(42);
     $manipulator->resetCrashes($task);
     $this->assertEquals(0, $task->getCrashed());
 }