[BUGFIX] Better mocking in BackendUtility::viewOnClick test 48/24748/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 14 Oct 2013 18:49:36 +0000 (20:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 14 Oct 2013 20:11:07 +0000 (22:11 +0200)
commitdc6236254514eed9739f08c7246628ee8ac2462c
treeaa850146c92b72449f94e3949a7339d8105a51f1
parentcca411bcfdbc19b8f9000d2bb4a736333128f2e6
[BUGFIX] Better mocking in BackendUtility::viewOnClick test

BackendUtility::viewOnClick() provides a hook to manipulate the
generated URL. ext:workspaces uses this. The patch adapts a
viewOnClick() test to unset possible registered hooks and prevents
unrelated code from messing with the test.

Change-Id: I4977575446bf898224583010ae7a2d34e145e147
Resolves: #52813
Releases: 6.2
Reviewed-on: https://review.typo3.org/24748
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php
typo3/sysext/core/Build/UnitTestsBootstrap.php