本文整理汇总了PHP中TYPO3\CMS\Backend\Sprite\SpriteManager::isInitialized方法的典型用法代码示例。如果您正苦于以下问题:PHP SpriteManager::isInitialized方法的具体用法?PHP SpriteManager::isInitialized怎么用?PHP SpriteManager::isInitialized使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Backend\Sprite\SpriteManager
的用法示例。
在下文中一共展示了SpriteManager::isInitialized方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
/**
* 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'] = '';
}