示例#1
0
 /**
  * @test
  * @param Todo $todo
  * @depends it_adds_a_reminder_to_todo
  */
 public function it_throws_an_exception_if_todo_is_closed_while_setting_a_reminder(Todo $todo)
 {
     $todo->markAsDone();
     $this->setExpectedException(TodoNotOpen::class);
     $todo->addReminder($todo->assigneeId(), TodoReminder::fromString('2047-12-11 12:00:00', TodoReminderStatus::OPEN));
 }
示例#2
0
 /**
  * @test
  * @expectedException \Prooph\ProophessorDo\Model\Todo\Exception\TodoNotOpen
  * @depends it_adds_a_deadline_to_todo
  */
 public function it_throws_an_exception_if_todo_is_closed(Todo $todo)
 {
     $todo->markAsDone();
     $todo->addDeadline($todo->assigneeId(), TodoDeadline::fromString('2047-12-11 12:00:00'));
 }