Пример #1
0
 /**
  * @test
  */
 public function collidingEventsDoNoCollideIfCollisionSkipIsEnabledForThisEvent()
 {
     $frontEndUserUid = $this->testingFramework->createFrontEndUser();
     $begin = $GLOBALS['SIM_EXEC_TIME'];
     $end = $begin + 1000;
     $this->fixture->setBeginDate($begin);
     $this->fixture->setEndDate($end);
     $this->fixture->setSkipCollisionCheck(TRUE);
     $eventUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('begin_date' => $begin, 'end_date' => $end));
     $this->testingFramework->createRecord('tx_seminars_attendances', array('seminar' => $eventUid, 'user' => $frontEndUserUid));
     self::assertFalse($this->fixture->isUserBlocked($frontEndUserUid));
 }