/** * @test */ public function getEventTypeForTopicRecordReturnsTitleOfRelatedEventType() { $topicRecordUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('object_type' => tx_seminars_Model_Event::TYPE_TOPIC, 'event_type' => $this->testingFramework->createRecord('tx_seminars_event_types', array('title' => 'foo type')))); $seminar = new tx_seminars_seminar($topicRecordUid); self::assertSame('foo type', $seminar->getEventType()); }