Ejemplo n.º 1
0
 /**
  * Inserts an organizer record into the database and creates a relation to
  * it from the fixture as a organizing partner.
  *
  * @param array $organizerData data of the organizer to add, may be empty
  *
  * @return int the UID of the created record, will be > 0
  */
 private function addOrganizingPartnerRelation(array $organizerData = array())
 {
     $uid = $this->testingFramework->createRecord('tx_seminars_organizers', $organizerData);
     $this->testingFramework->createRelation('tx_seminars_seminars_organizing_partners_mm', $this->fixture->getUid(), $uid);
     $this->fixture->setNumberOfOrganizingPartners($this->fixture->getNumberOfOrganizingPartners() + 1);
     return $uid;
 }