[BUGFIX] Better mocking in FormProtection tests 50/24750/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 14 Oct 2013 19:39:41 +0000 (21:39 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 14 Oct 2013 20:11:37 +0000 (22:11 +0200)
commit8da0e323fbdbdfa394d3f4885cb23b4c0d0c3019
treeae6799a17bb56037c56fbcc9bc715bd77870ea88
parentdc6236254514eed9739f08c7246628ee8ac2462c
[BUGFIX] Better mocking in FormProtection tests

Some FormProtection tests rely on an instantiated BE_USER object.
The patch takes care of proper mocking in this case and removes
the BE_USER instantiation from unit test bootstrap.

Change-Id: I85005db863bab10ccd61eb910153733b82e2b65e
Resolves: #52819
Releases: 6.2
Reviewed-on: https://review.typo3.org/24750
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Build/UnitTestsBootstrap.php
typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php
typo3/sysext/core/Tests/Unit/FormProtection/FormProtectionFactoryTest.php