Ejemplo n.º 1
0
 /**
  * @test
  */
 public function renderForValidPublicationHashRemovesPublicationHashFromEvent()
 {
     $this->fixture->init(array());
     $eventUid = $this->testingFramework->createRecord('tx_seminars_seminars', array('hidden' => 1, 'publication_hash' => '123456ABC'));
     $this->fixture->piVars['hash'] = '123456ABC';
     $this->fixture->render();
     self::assertTrue($this->testingFramework->existsRecord('tx_seminars_seminars', 'uid = ' . $eventUid . ' AND publication_hash = ""'));
 }
Ejemplo n.º 2
0
 /**
  * @test
  */
 public function removeRegistrationWithFittingQueueRegistrationMovesItFromQueue()
 {
     $userUid = $this->testingFramework->createAndLoginFrontEndUser();
     $seminarUid = $this->seminarUid;
     $this->createFrontEndPages();
     $registrationUid = $this->testingFramework->createRecord('tx_seminars_attendances', array('user' => $userUid, 'seminar' => $seminarUid));
     $queueRegistrationUid = $this->testingFramework->createRecord('tx_seminars_attendances', array('user' => $userUid, 'seminar' => $seminarUid, 'seats' => 1, 'registration_queue' => 1));
     $this->fixture->removeRegistration($registrationUid, $this->pi1);
     $this->testingFramework->existsRecord('tx_seminars_attendances', 'registration_queue = 0 AND uid = ' . $queueRegistrationUid);
 }
Ejemplo n.º 3
0
 public function testCreateMmRecordsWithCreatesSecondMmRecordWithSortingTwo()
 {
     $this->testingFramework->markTableAsDirty('tx_seminars_test_test_mm');
     $this->fixture->createMmRecords('tx_seminars_test_test_mm', array(42, 31));
     self::assertTrue($this->testingFramework->existsRecord('tx_seminars_test_test_mm', 'uid_local = ' . $this->fixtureUid . ' AND uid_foreign = 31 ' . 'AND sorting = 2'));
 }
Ejemplo n.º 4
0
 /**
  * @test
  */
 public function setEventStateSetsStatusToCanceled()
 {
     $this->fixture->setPostData(array('action' => 'cancelEvent', 'isSubmitted' => '1', 'sender' => $this->organizerUid, 'subject' => 'foo', 'messageBody' => 'foo bar'));
     $this->fixture->render();
     self::assertTrue($this->testingFramework->existsRecord('tx_seminars_seminars', 'uid = ' . $this->eventUid . ' AND cancelled = ' . tx_seminars_seminar::STATUS_CANCELED));
 }