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


PHP ViewHelperBaseTestcase::setUp方法代码示例

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


在下文中一共展示了ViewHelperBaseTestcase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\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:cerlestes,项目名称:flow-development-collection,代码行数:7,代码来源:AbstractConditionViewHelperTest.php

示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\ViewHelpers\IfViewHelper::class, array('renderThenChild', 'renderElseChild'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:7,代码来源:IfViewHelperTest.php

示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = new \TYPO3\Fluid\ViewHelpers\Uri\ActionViewHelper();
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:7,代码来源:ActionViewHelperTest.php

示例4: setUp

 /**
  */
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock('TYPO3\\Fluid\\ViewHelpers\\Validation\\IfHasErrorsViewHelper', array('renderThenChild', 'renderElseChild'));
     $this->inject($this->viewHelper, 'controllerContext', $this->controllerContext);
     //$this->inject($this->ifAccessViewHelper, 'accessDecisionManager', $this->mockAccessDecisionManager);
 }
开发者ID:sakona999,项目名称:flow-login,代码行数:9,代码来源:IfHasErrorsViewHelperTest.php

示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock('TYPO3\\Fluid\\ViewHelpers\\Link\\EmailViewHelper', array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:sokunthearith,项目名称:Intern-Project-Week-2,代码行数:7,代码来源:EmailViewHelperTest.php

示例6: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMockBuilder(\TYPO3\Fluid\ViewHelpers\Format\HtmlentitiesDecodeViewHelper::class)->setMethods(array('renderChildren'))->getMock();
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:7,代码来源:HtmlentitiesDecodeViewHelperTest.php

示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock('TYPO3\\Fluid\\ViewHelpers\\Format\\JsonViewHelper', array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:sokunthearith,项目名称:Intern-Project-Week-2,代码行数:7,代码来源:JsonViewHelperTest.php

示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getMock(\TYPO3\Fluid\ViewHelpers\CycleViewHelper::class, array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:7,代码来源:CycleViewHelperTest.php

示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->templateVariableContainer = new \TYPO3\Fluid\Core\ViewHelper\TemplateVariableContainer();
     $this->renderingContext->injectTemplateVariableContainer($this->templateVariableContainer);
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\ViewHelpers\RenderViewHelper::class, array('dummy'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:8,代码来源:RenderViewHelperTest.php

示例10: setUp

 /**
  * Sets up this test case
  */
 public function setUp()
 {
     parent::setUp();
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\ViewHelpers\Format\IdentifierViewHelper::class, array('renderChildren'));
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->mockPersistenceManager = $this->createMock(\TYPO3\Flow\Persistence\PersistenceManagerInterface::class);
     $this->viewHelper->_set('persistenceManager', $this->mockPersistenceManager);
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:11,代码来源:IdentifierViewHelperTest.php

示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->templateVariableContainer = new \TYPO3\Fluid\Core\ViewHelper\TemplateVariableContainer(array());
     $this->renderingContext->injectTemplateVariableContainer($this->templateVariableContainer);
     $this->arguments['reverse'] = null;
     $this->arguments['key'] = '';
     $this->arguments['iteration'] = null;
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:9,代码来源:ForViewHelperTest.php

示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->translateViewHelper = $this->getAccessibleMock('TYPO3\\Fluid\\ViewHelpers\\TranslateViewHelper', array('renderChildren'));
     $this->request->expects($this->any())->method('getControllerPackageKey')->will($this->returnValue('TYPO3.Fluid'));
     $this->dummyLocale = new Locale('de_DE');
     $this->mockTranslator = $this->getMockBuilder('TYPO3\\Flow\\I18n\\Translator')->disableOriginalConstructor()->getMock();
     $this->inject($this->translateViewHelper, 'translator', $this->mockTranslator);
     $this->injectDependenciesIntoViewHelper($this->translateViewHelper);
 }
开发者ID:sengkimlong,项目名称:Flow3-Authentification,代码行数:10,代码来源:TranslateViewHelperTest.php

示例13: setUp

 public function setUp()
 {
     parent::setUp();
     $this->mockResourceManager = $this->getMock('TYPO3\\Flow\\Resource\\ResourceManager');
     $this->mockI18nService = $this->getMock('TYPO3\\Flow\\I18n\\Service');
     $this->viewHelper = $this->getAccessibleMock('TYPO3\\Fluid\\ViewHelpers\\Uri\\ResourceViewHelper', array('renderChildren'), array(), '', FALSE);
     $this->inject($this->viewHelper, 'resourceManager', $this->mockResourceManager);
     $this->inject($this->viewHelper, 'i18nService', $this->mockI18nService);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:sengkimlong,项目名称:Flow3-Authentification,代码行数:11,代码来源:ResourceViewHelperTest.php

示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->mockResourceManager = $this->createMock(\TYPO3\Flow\Resource\ResourceManager::class);
     $this->mockI18nService = $this->createMock(\TYPO3\Flow\I18n\Service::class);
     $this->viewHelper = $this->getAccessibleMock(\TYPO3\Fluid\ViewHelpers\Uri\ResourceViewHelper::class, array('renderChildren'), array(), '', false);
     $this->inject($this->viewHelper, 'resourceManager', $this->mockResourceManager);
     $this->inject($this->viewHelper, 'i18nService', $this->mockI18nService);
     $this->injectDependenciesIntoViewHelper($this->viewHelper);
     $this->viewHelper->initializeArguments();
 }
开发者ID:cerlestes,项目名称:flow-development-collection,代码行数:11,代码来源:ResourceViewHelperTest.php

示例15: setUp

 /**
  * Set up test dependencies
  */
 public function setUp()
 {
     parent::setUp();
     $this->arguments['action'] = '';
     $this->arguments['arguments'] = array();
     $this->arguments['controller'] = '';
     $this->arguments['package'] = '';
     $this->arguments['subpackage'] = '';
     $this->arguments['method'] = '';
     $this->arguments['object'] = null;
     $this->arguments['section'] = '';
     $this->arguments['absolute'] = false;
     $this->arguments['addQueryString'] = false;
     $this->arguments['format'] = '';
     $this->arguments['additionalParams'] = array();
     $this->arguments['argumentsToBeExcludedFromQueryString'] = array();
     $this->arguments['useParentRequest'] = false;
 }
开发者ID:robertlemke,项目名称:flow-development-collection,代码行数:21,代码来源:FormViewHelperTest.php


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