예제 #1
0
파일: EscapeTest.php 프로젝트: typo3/fluid
 /**
  * @test
  */
 public function processWrapsCurrentViewHelperInEscapeNode()
 {
     $interceptorPosition = InterceptorInterface::INTERCEPT_OBJECTACCESSOR;
     $mockNode = $this->getMock(ObjectAccessorNode::class, [], [], '', false);
     $actualResult = $this->escapeInterceptor->process($mockNode, $interceptorPosition, $this->mockParsingState);
     $this->assertInstanceOf(EscapingNode::class, $actualResult);
 }
예제 #2
0
 /**
  * @test
  */
 public function processWrapsCurrentViewHelperInHtmlspecialcharsViewHelperOnObjectAccessor()
 {
     $interceptorPosition = InterceptorInterface::INTERCEPT_OBJECTACCESSOR;
     $mockNode = $this->getMock('TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ObjectAccessorNode', array(), array(), '', FALSE);
     $mockEscapeViewHelper = $this->getMock('TYPO3Fluid\\Fluid\\ViewHelpers\\Format\\HtmlspecialcharsViewHelper');
     $actualResult = $this->escapeInterceptor->process($mockNode, $interceptorPosition, $this->mockParsingState);
     $this->assertInstanceOf('TYPO3Fluid\\Fluid\\Core\\Parser\\SyntaxTree\\ViewHelperNode', $actualResult);
 }