public function question_update_answerExportFlag($questionId, $answerId, $isToBeExported)
 {
     return QuestionCommands::updateAnswerExportFlag($this->projectId, $questionId, $answerId, $isToBeExported);
 }
 public function testUpdateAnswerExportFlag_ExistingAnswer_ChangePersists()
 {
     $environ = new MongoTestEnvironment();
     $environ->clean();
     $project = $environ->createProject(SF_TESTPROJECT, SF_TESTPROJECTCODE);
     $text = new TextModel($project);
     $text->title = 'Text 1';
     $usx = MongoTestEnvironment::usxSample();
     $text->content = $usx;
     $textId = $text->write();
     $question = new QuestionModel($project);
     $question->textRef->id = $textId;
     $questionId = $question->write();
     $answer = new AnswerModel();
     $answer->content = 'the answer';
     $answer->isToBeExported = false;
     $answerId = $question->writeAnswer($answer);
     $isToBeExported = true;
     $dto = QuestionCommands::updateAnswerExportFlag($project->id->asString(), $questionId, $answerId, $isToBeExported);
     $question->read($questionId);
     $newAnswer = $question->readAnswer($answerId);
     $this->assertTrue($newAnswer->isToBeExported);
     $this->assertTrue($dto[$answerId]['isToBeExported']);
 }