addMember(self::$member); self::$em->persist(self::$summit); self::$em->persist(self::$summit_permission_group); self::$em->flush(); } protected function tearDown() { self::clearMemberTestData(); self::clearTestData(); parent::tearDown(); } public function testAddSelectionPlanQuestion(){ $newQuestion = SummitSelectionPlanExtraQuestionTypeFactory::build([ 'name' => 'Test Question', 'label' => 'Test Question', 'type' => ExtraQuestionTypeConstants::TextQuestionType, 'placeholder' => 'This is a placeholder', 'mandatory' => true, ]); self::$default_selection_plan->addExtraQuestion($newQuestion); self::$em->persist(self::$default_selection_plan); self::$em->flush(); $this->assertFalse($newQuestion->getId() > 0); } }