Пример #1
0
 public function testNewButtonForSpeakerStorageSettingSetInUsersGroupSetsThisPidAsNewRecordPid()
 {
     $newSpeakerFolder = $this->dummySysFolderPid + 1;
     $backEndGroup = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_BackEndUserGroup')->getLoadedTestingModel(array('tx_seminars_auxiliaries_folder' => $newSpeakerFolder));
     $backEndUser = tx_oelib_MapperRegistry::get('tx_seminars_Mapper_BackEndUser')->getLoadedTestingModel(array('usergroup' => $backEndGroup->getUid()));
     tx_oelib_BackEndLoginManager::getInstance()->setLoggedInUser($backEndUser);
     self::assertContains('edit[tx_seminars_speakers][' . $newSpeakerFolder . ']=new', $this->fixture->show());
 }
Пример #2
0
 public function testNewButtonForEventStoredInPageDetermindedByGroupHasForeignFolderLabel()
 {
     $newEventFolder = tx_oelib_BackEndLoginManager::getInstance()->getLoggedInUser('tx_seminars_Mapper_BackEndUser')->getEventFolderFromGroup();
     self::assertContains(sprintf($GLOBALS['LANG']->getLL('label_create_record_in_foreign_folder'), '', $newEventFolder), $this->fixture->show());
 }
Пример #3
0
 /**
  * Gets the currently logged in back-end user.
  *
  * @return tx_seminars_Model_BackEndUser the currently logged in back-end
  *                                       user
  */
 protected function getLoggedInUser()
 {
     return tx_oelib_BackEndLoginManager::getInstance()->getLoggedInUser('tx_seminars_Mapper_BackEndUser');
 }