当前位置: 首页>>代码示例>>PHP>>正文


PHP ViewHelpers\ViewHelperBaseTestcase类代码示例

本文整理汇总了PHP中TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase的典型用法代码示例。如果您正苦于以下问题:PHP ViewHelperBaseTestcase类的具体用法?PHP ViewHelperBaseTestcase怎么用?PHP ViewHelperBaseTestcase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ViewHelperBaseTestcase类的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();
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:7,代码来源:ExternalViewHelperTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->fixture = $this->getAccessibleMock(SplitViewHelper::class, ['renderChildren']);
     $this->injectDependenciesIntoViewHelper($this->fixture);
     $this->fixture->initializeArguments();
 }
开发者ID:cushingw,项目名称:typo3-find,代码行数:7,代码来源:SplitViewHelperTest.php

示例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();
 }
开发者ID:preinboth,项目名称:moox_news,代码行数:7,代码来源:FileDownloadViewHelperTest.php

示例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();
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:7,代码来源:IfViewHelperTest.php

示例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();
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:7,代码来源:CaseViewHelperTest.php

示例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();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:7,代码来源:StripTagsViewHelperTest.php

示例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);
 }
开发者ID:preinboth,项目名称:moox_news,代码行数:10,代码来源:SimplePrevNextViewHelperTest.php

示例8: setUp

 /**
  */
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(VideoViewHelper::class, ['renderChildren']);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:sabbelasichon,项目名称:ssch_html5videoplayer,代码行数:9,代码来源:VideoViewHelperTest.php

示例9: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->viewHelper = new ExternalViewHelper();
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:7,代码来源:ExternalViewHelperTest.php

示例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);
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:7,代码来源:AbstractConditionViewHelperTest.php

示例11: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(Nl2brViewHelper::class, array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:7,代码来源:Nl2brViewHelperTest.php

示例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);
 }
开发者ID:BastianBalthasarBux,项目名称:news,代码行数:10,代码来源:SimplePrevNextViewHelperTest.php

示例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();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:10,代码来源:PageViewHelperTest.php

示例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();
 }
开发者ID:r3h6,项目名称:news,代码行数:8,代码来源:IfAccessToTableIsAllowedViewHelperTest.php

示例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;
 }
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:9,代码来源:ForViewHelperTest.php


注:本文中的TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\ViewHelperBaseTestcase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。