Example #1
0
 /**
  * Inserts a speaker record into the database and creates a relation to it
  * from the fixture as tutor.
  *
  * @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 addTutorRelation($speakerData)
 {
     $uid = $this->testingFramework->createRecord('tx_seminars_speakers', $speakerData);
     $this->testingFramework->createRelation('tx_seminars_seminars_speakers_mm_tutors', $this->fixture->getUid(), $uid);
     $this->fixture->setNumberOfTutors($this->fixture->getNumberOfTutors() + 1);
     return $uid;
 }