public function testSetInterviewQuestion() { $alternative = new InterviewQuestionAlternative(); $intQuestion = new InterviewQuestion(); $alternative->setInterviewQuestion($intQuestion); $this->assertEquals($intQuestion, $alternative->getInterviewQuestion()); }
/** * Add alternatives * * @param \AppBundle\Entity\InterviewQuestionAlternative $alternatives * @return InterviewQuestion */ public function addAlternative(\AppBundle\Entity\InterviewQuestionAlternative $alternatives) { $this->alternatives[] = $alternatives; $alternatives->setInterviewQuestion($this); return $this; }