本文整理汇总了PHP中TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP ViewHelperBaseTestcase::setUp方法的具体用法?PHP ViewHelperBaseTestcase::setUp怎么用?PHP ViewHelperBaseTestcase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase
的用法示例。
在下文中一共展示了ViewHelperBaseTestcase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
$this->viewHelper = new \TYPO3\CMS\Fluid\ViewHelpers\Uri\ExternalViewHelper();
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例2: setUp
public function setUp()
{
parent::setUp();
$this->fixture = $this->getAccessibleMock(SplitViewHelper::class, ['renderChildren']);
$this->injectDependenciesIntoViewHelper($this->fixture);
$this->fixture->initializeArguments();
}
示例3: setUp
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock('Tx_MooxNews_ViewHelpers_Format_FileDownloadViewHelper', array('renderChildren'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例4: setUp
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock('TYPO3\\CMS\\Fluid\\ViewHelpers\\IfViewHelper', array('renderThenChild', 'renderElseChild'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例5: setUp
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getMock('TYPO3\\CMS\\Fluid\\ViewHelpers\\CaseViewHelper', array('renderChildren'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例6: setUp
protected function setUp()
{
parent::setUp();
$this->viewHelper = $this->getMock(\TYPO3\CMS\Fluid\ViewHelpers\Format\StripTagsViewHelper::class, array('renderChildren'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例7: setUp
/**
* Set up
*/
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock('Tx_MooxNews_ViewHelpers_SimplePrevNextViewHelper', array('dummy'));
$mockedDatabaseConnection = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', array('exec_SELECTgetSingleRow'));
$this->viewHelper->_set('databaseConnection', $mockedDatabaseConnection);
}
示例8: setUp
/**
*/
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock(VideoViewHelper::class, ['renderChildren']);
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例9: setUp
protected function setUp()
{
parent::setUp();
$this->viewHelper = new ExternalViewHelper();
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例10: setUp
protected function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock(\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper::class, array('getRenderingContext', 'renderChildren', 'hasArgument'));
$this->viewHelper->expects($this->any())->method('getRenderingContext')->will($this->returnValue($this->renderingContext));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
}
示例11: setUp
protected function setUp()
{
parent::setUp();
$this->viewHelper = $this->getMock(Nl2brViewHelper::class, array('renderChildren'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例12: setUp
/**
* Set up
*/
public function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock('GeorgRinger\\News\\ViewHelpers\\SimplePrevNextViewHelper', ['dummy']);
$mockedDatabaseConnection = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', ['exec_SELECTgetSingleRow']);
$this->viewHelper->_set('databaseConnection', $mockedDatabaseConnection);
}
示例13: setUp
/**
* setUp function
*/
protected function setUp()
{
parent::setUp();
$this->viewHelper = $this->getAccessibleMock(\TYPO3\CMS\Fluid\ViewHelpers\Link\PageViewHelper::class, array('renderChildren'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例14: setUp
public function setUp()
{
parent::setUp();
$GLOBALS['BE_USER'] = $this->getMock('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication', array('dummy'));
$this->viewHelper = $this->getAccessibleMock('GeorgRinger\\News\\ViewHelpers\\Be\\Security\\IfAccessToTableIsAllowedViewHelper', array('renderThenChild', 'renderElseChild'));
$this->injectDependenciesIntoViewHelper($this->viewHelper);
$this->viewHelper->initializeArguments();
}
示例15: setUp
protected function setUp()
{
parent::setUp();
$this->templateVariableContainer = new \TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer(array());
$this->renderingContext->injectTemplateVariableContainer($this->templateVariableContainer);
$this->arguments['reverse'] = null;
$this->arguments['key'] = '';
$this->arguments['iteration'] = null;
}