[BUGFIX] Fix failing test 41/26041/3
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 8 Dec 2013 12:35:17 +0000 (13:35 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 8 Dec 2013 12:50:30 +0000 (13:50 +0100)
Change-Id: I26b7697cdc4b40e007b89898491761105d0ba696
Resolves: #54282
Releases: 4.5
Reviewed-on: https://review.typo3.org/26041
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/fluid/Tests/Unit/ViewHelpers/FormViewHelperTest.php

index 2a7af9b..61caa95 100644 (file)
@@ -161,8 +161,6 @@ class Tx_Fluid_Tests_Unit_ViewHelpers_FormViewHelperTest extends Tx_Fluid_ViewHe
         */
        public function renderWrapsHiddenFieldsWithDivAndAnAdditionalClassForXhtmlCompatibilityWithDeprecatedPropertyMapper() {
                $viewHelper = $this->getMock($this->buildAccessibleProxy('Tx_Fluid_ViewHelpers_FormViewHelper'), array('renderChildren', 'renderHiddenIdentityField', 'renderAdditionalIdentityFields', 'renderHiddenReferrerFields', 'renderTrustedPropertiesField', 'renderRequestHashField'), array(), '', FALSE);
-               $configurationManager = $this->getMock('Tx_Extbase_Configuration_ConfigurationManager', array('isFeatureEnabled'));
-               $viewHelper->injectConfigurationManager($configurationManager);
                parent::injectDependenciesIntoViewHelper($viewHelper);
                $viewHelper->expects($this->once())->method('renderHiddenIdentityField')->will($this->returnValue('hiddenIdentityField'));
                $viewHelper->expects($this->once())->method('renderAdditionalIdentityFields')->will($this->returnValue('additionalIdentityFields'));
@@ -170,7 +168,7 @@ class Tx_Fluid_Tests_Unit_ViewHelpers_FormViewHelperTest extends Tx_Fluid_ViewHe
                $viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue('formContent'));
                $expectedResult = LF . '<div class="hidden">' . 'hiddenIdentityFieldadditionalIdentityFieldshiddenReferrerFields' . LF . '</div>' . LF . 'formContent';
                $this->tagBuilder->expects($this->once())->method('setContent')->with($expectedResult);
-               $viewHelper->setArguments(array('hiddenFieldClassName' => 'hidden'));
+               $viewHelper->setArguments(new Tx_Fluid_Core_ViewHelper_Arguments(array('hiddenFieldClassName' => 'hidden')));
                $viewHelper->render();
        }