/** * @test */ public function processDisablesEscapingInterceptorIfViewHelperDisablesIt() { $interceptorPosition = \TYPO3\CMS\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_OPENING_VIEWHELPER; $this->mockViewHelper->expects($this->once())->method('isEscapingInterceptorEnabled')->will($this->returnValue(FALSE)); $this->mockNode->expects($this->once())->method('getUninitializedViewHelper')->will($this->returnValue($this->mockViewHelper)); $this->assertTrue($this->escapeInterceptor->_get('interceptorEnabled')); $this->escapeInterceptor->process($this->mockNode, $interceptorPosition, $this->mockParsingState); $this->assertFalse($this->escapeInterceptor->_get('interceptorEnabled')); }