示例#1
0
 /**
  * Setup
  */
 protected function setUp()
 {
     parent::setUp();
     $GLOBALS['TSFE'] = new TypoScriptFrontendController($GLOBALS['TYPO3_CONF_VARS'], 0, 0, 1);
     $GLOBALS['TSFE']->cObj = new ContentObjectRenderer();
     $GLOBALS['TSFE']->sys_page = new PageRepository();
     $GLOBALS['TT'] = new NullTimeTracker();
     $GLOBALS['TYPO3_DB'] = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', array('exec_SELECTgetRows'), array(), '', FALSE);
     $GLOBALS['TYPO3_DB']->expects($this->any())->method('exec_SELECTgetRows')->will($this->returnValue(array()));
     $GLOBALS['TCA']['tt_content']['ctrl'] = array();
 }
 /**
  * Setup
  */
 protected function setUp()
 {
     parent::setUp();
     $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'] = array();
 }
 /**
  * Setup
  */
 protected function setUp()
 {
     parent::setUp();
     $GLOBALS['TSFE'] = new TypoScriptFrontendController($GLOBALS['TYPO3_CONF_VARS'], 1, 0);
 }