[~FEATURE] Fluid (ViewHelpers): Adjusted AbstractFormViewHelper to be able to namespa...
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Tests / ViewHelpers / Form / ErrorsViewHelperTest_testcase.php
index 946d82d..d064963 100644 (file)
@@ -38,9 +38,7 @@ class Tx_Fluid_ViewHelpers_Form_ErrorsViewHelperTest_testcase extends Tx_Fluid_V
        public function renderWithoutSpecifiedNameLoopsThroughRootErrors() {
                $mockError1 = $this->getMock('Tx_Extbase_Error_Error', array(), array(), '', FALSE);
                $mockError2 = $this->getMock('Tx_Extbase_Error_Error', array(), array(), '', FALSE);
-               $mockRequest = $this->getMock('Tx_Extbase_MVC_Request');
-               $mockRequest->expects($this->atLeastOnce())->method('getErrors')->will($this->returnValue(array($mockError1, $mockError2)));
-               $this->controllerContext->expects($this->atLeastOnce())->method('getRequest')->will($this->returnValue($mockRequest));
+               $this->request->expects($this->atLeastOnce())->method('getErrors')->will($this->returnValue(array($mockError1, $mockError2)));
 
                $viewHelper = new Tx_Fluid_ViewHelpers_Form_ErrorsViewHelper();
                $this->injectDependenciesIntoViewHelper($viewHelper);