/**
  * @test
  */
 public function updateQuestionWorks()
 {
     $exercise = new MultipleChoiceSameAnswerExercise();
     $question = new MultipleChoiceQuestion();
     $question->setText('Question A');
     $rightAnswer = new MultipleChoicePossibleAnswer();
     $rightAnswer->setNumber(0);
     $rightAnswer->setText('Answer 1');
     $rightAnswer->setIsCorrectAnswer(true);
     $question->addPossibleAnswer($rightAnswer);
     $wrongAnswer = new MultipleChoicePossibleAnswer();
     $wrongAnswer->setNumber(1);
     $wrongAnswer->setText('Answer 2');
     $wrongAnswer->setIsCorrectAnswer(false);
     $question->addPossibleAnswer($wrongAnswer);
     $exercise->addQuestion($question);
     $question->setText('Question B');
     $exercise->updateQuestion($question);
     $this->assertEquals('Question B', $exercise->getQuestions()->first()->getText());
 }