示例#1
0
 /**
  * Set up test case
  *
  * @return void
  */
 public function setUp()
 {
     if (!\TYPO3\CMS\Backend\Sprite\SpriteManager::isInitialized()) {
         \TYPO3\CMS\Backend\Sprite\SpriteManager::initialize();
     }
     // Simulate a tt_content record
     $this->mockRecord = array();
     $this->mockRecord['header'] = 'dummy content header';
     $this->mockRecord['uid'] = '1';
     $this->mockRecord['pid'] = '1';
     $this->mockRecord['image'] = '';
     $this->mockRecord['hidden'] = '0';
     $this->mockRecord['starttime'] = '0';
     $this->mockRecord['endtime'] = '0';
     $this->mockRecord['fe_group'] = '';
     $this->mockRecord['CType'] = 'text';
     $this->mockRecord['t3ver_id'] = '0';
     $this->mockRecord['t3ver_state'] = '0';
     $this->mockRecord['t3ver_wsid'] = '0';
     $this->mockRecord['sys_TYPO3\\CMS\\Lang\\LanguageService_uid'] = '0';
     $this->mockRecord['l18n_parent'] = '0';
     $this->mockRecord['subheader'] = '';
     $this->mockRecord['bodytext'] = '';
 }