Beispiel #1
0
 /**
  * Inserts a speaker record into the database and creates a relation to it
  * from the fixture as partner.
  *
  * @param array $speakerData data of the speaker to add, may be empty
  *
  * @return int the UID of the created record, will be > 0
  */
 private function addPartnerRelation($speakerData)
 {
     $uid = $this->testingFramework->createRecord('tx_seminars_speakers', $speakerData);
     $this->testingFramework->createRelation('tx_seminars_seminars_speakers_mm_partners', $this->fixture->getUid(), $uid);
     $this->fixture->setNumberOfPartners($this->fixture->getNumberOfPartners() + 1);
     return $uid;
 }