Exemplo n.º 1
0
 /**
  * @test
  */
 public function getPlaceWithPlaceReturnsPlaceInstance()
 {
     $place = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Place')->getNewGhost();
     $timeSlotUid = $this->testingFramework->createRecord('tx_seminars_timeslots', array('place' => $place->getUid()));
     /** @var tx_seminars_Model_TimeSlot $model */
     $model = $this->fixture->find($timeSlotUid);
     self::assertTrue($model->getPlace() instanceof tx_seminars_Model_Place);
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function getSeminarWithSeminarReturnsEventInstance()
 {
     $seminar = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_Event')->getNewGhost();
     $timeSlotUid = $this->testingFramework->createRecord('tx_seminars_timeslots', array('seminar' => $seminar->getUid()));
     /** @var tx_seminars_Model_TimeSlot $model */
     $model = $this->fixture->find($timeSlotUid);
     self::assertTrue($model->getSeminar() instanceof tx_seminars_Model_Event);
 }