예제 #1
0
 /**
  * @test
  */
 public function getEventTypeUidReturnsUidFromTopicRecord()
 {
     // This test comes from bug #1515.
     $topicRecordUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_TOPIC, 'event_type' => 99999));
     $dateRecordUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_DATE, 'topic' => $topicRecordUid, 'event_type' => 199999));
     $seminar = new tx_seminars_seminar($dateRecordUid);
     self::assertSame(99999, $seminar->getEventTypeUid());
 }