public function testDelete()
 {
     $this->notifier->expects($this->once())->method('notify')->with(NotifierInterface::MESSAGE_DELETE);
     $task = $this->loadTask();
     $this->sut->delete($task);
     $this->assertNotContains($task, $this->findAllTasks());
 }
 public function testDelete()
 {
     $notifier = $this->createNotifierMock();
     $notifier->expects($this->once())->method('notify')->with(Notifier::MESSAGE_DELETE);
     $manipulator = new TaskManipulator(self::$DI['app']['EM'], $notifier, self::$DI['app']['translator'], self::$DI['app']['repo.tasks']);
     $task = $this->loadTask();
     $manipulator->delete($task);
     $this->assertNotContains($task, $this->findAllTasks());
 }