/** * Construct to initialize class variables. */ public function __construct() { parent::__construct(); $this->localizationController = GeneralUtility::makeInstance(LocalizationController::class); $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class); $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); $pageRenderer->addInlineLanguageLabelFile('EXT:backend/Resources/Private/Language/locallang_layout.xlf'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Tooltip'); $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Localization'); }
/** * @test * @expectedException \UnexpectedValueException * @expectedExceptionCode 1436195933 */ public function setTableDisplayOrderThrowsExceptionOnInvalidBefore() { $test = ['table' => ['before' => new \stdClass()]]; $subject = new AbstractDatabaseRecordList(); $subject->setTableDisplayOrder($test); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class); }