Example #1
0
 /**
  * Inserts a target group record into the database and creates a relation to
  * it from the fixture.
  *
  * @param array $targetGroupData data of the target group to add, may be empty
  *
  * @return int the UID of the created record, will be > 0
  */
 private function addTargetGroupRelation(array $targetGroupData = array())
 {
     $uid = $this->testingFramework->createRecord('tx_seminars_target_groups', $targetGroupData);
     $this->testingFramework->createRelation('tx_seminars_seminars_target_groups_mm', $this->fixture->getUid(), $uid);
     $this->fixture->setNumberOfTargetGroups($this->fixture->getNumberOfTargetGroups() + 1);
     return $uid;
 }