Example #1
0
 public function testWeCanDefineRelatedTicketInDescription()
 {
     $taskNameWithTicketId = "#12345# Empty Mailbox.";
     $taskWithTicketId = new Task($taskNameWithTicketId);
     $this->assertEquals('12345', $taskWithTicketId->getTicket());
     $this->assertEquals('Empty Mailbox.', $taskWithTicketId->getDescription());
 }
Example #2
0
 public function addTask(Task $task)
 {
     $task->setWorkingDay($this);
     $this->tasks->add($task);
 }