/** * Sets up this test case. */ public function setUp() { parent::setUp(); $this->setUpBackendUserFromFixture(1); $this->importDataSet(ORIGINAL_ROOT . 'typo3/sysext/backend/Tests/Functional/Fixtures/inlinetest.xml'); $GLOBALS['LANG'] = GeneralUtility::makeInstance('TYPO3\\CMS\\Lang\\LanguageService'); $GLOBALS['LANG']->init('default'); $this->subject = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine'); $this->subject->initDefaultBEmode(); }
/** * @param ViewInterface $view * @return void */ public function initializeView(ViewInterface $view) { parent::initializeView($view); $name = $this->getCurrentConfigurationName(); $pageUid = $this->getCurrentPageUid(); $this->configuration = $this->configurationRepository->findOrCreateOneByNameInPid($name, $pageUid); $this->formHandler = $this->objectManager->get('TYPO3\\CMS\\Backend\\Form\\FormEngine'); $this->formHandler->initDefaultBEmode(); $this->formHandler->enableClickMenu = TRUE; $this->formHandler->enableTabMenu = TRUE; $this->view->assign('formHandler', $this->formHandler); $this->view->assign('configurationName', $name); $this->view->setControllerContext($this->controllerContext); }