Exemplo n.º 1
0
 /**
  * @test
  */
 public function updatePlaceRelationsForSeminarWithoutPlacesCanRelateTwoPlacesFromTimeslotsToSeminar()
 {
     $placeUid1 = $this->testingFramework->createRecord('tx_seminars_sites', array('title' => 'my house'));
     $this->testingFramework->createRecord('tx_seminars_timeslots', array('place' => $placeUid1, 'seminar' => $this->fixture->getUid()));
     $placeUid2 = $this->testingFramework->createRecord('tx_seminars_sites', array('title' => 'your house'));
     $this->testingFramework->createRecord('tx_seminars_timeslots', array('place' => $placeUid2, 'seminar' => $this->fixture->getUid()));
     $this->fixture->setNumberOfTimeSlots(2);
     $this->fixture->setNumberOfPlaces(2);
     $this->fixture->updatePlaceRelationsFromTimeSlots();
     self::assertContains('my house', $this->fixture->getPlaceShort());
     self::assertContains('your house', $this->fixture->getPlaceShort());
 }