/**
  * @test
  */
 public function canRegisterIfLoggedInMessageForRegistrationNotPossibleNotCallsCanUserRegisterForSeminarMessageHook()
 {
     $this->testingFramework->createAndLoginFrontEndUser();
     $this->seminar->setStatus(tx_seminars_seminar::STATUS_CANCELED);
     $hookClass = uniqid('tx_registrationHook');
     $hook = $this->getMock($hookClass, array('canRegisterForSeminarMessage'));
     $hook->expects(self::never())->method('canRegisterForSeminarMessage');
     $GLOBALS['T3_VAR']['getUserObj'][$hookClass] = $hook;
     $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['seminars']['registration'][$hookClass] = $hookClass;
     $this->fixture->canRegisterIfLoggedInMessage($this->seminar);
 }
Beispiel #2
0
 /**
  * @test
  */
 public function isPlannedForStatusCanceledReturnsFalse()
 {
     $this->fixture->setStatus(tx_seminars_seminar::STATUS_CANCELED);
     self::assertFalse($this->fixture->isPlanned());
 }